Skip to content
Snippets Groups Projects
Unverified Commit 4de4a2e1 authored by shiosyakeyakini's avatar shiosyakeyakini Committed by GitHub
Browse files

fix: withChannelNotesとwithFilesを同時に指定したときの考慮 (#12550)


Co-authored-by: default avatarsorairo <sorairo@shiosyakeyakini.info>
parent 5ccd61b1
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment