mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 17:10:39 +01:00
fix: withChannelNotesとwithFilesを同時に指定したときの考慮 (#12550)
Co-authored-by: sorairo <sorairo@shiosyakeyakini.info>
This commit is contained in:
parent
5ccd61b1f8
commit
4de4a2e143
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue