fix: withChannelNotesとwithFilesを同時に指定したときの考慮 (#12550)
Co-authored-by: sorairo <sorairo@shiosyakeyakini.info>
This commit is contained in:
parent
5ccd61b1f8
commit
4de4a2e143
@ -113,6 +113,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||
redisTimelines,
|
||||
useDbFallback: true,
|
||||
noteFilter: note => {
|
||||
if (ps.withFiles && note.fileIds.length === 0) {
|
||||
return false;
|
||||
}
|
||||
if (me && isUserRelated(note, userIdsWhoMeMuting, true)) return false;
|
||||
|
||||
if (note.renoteId) {
|
||||
|
Loading…
Reference in New Issue
Block a user