fix Fanout excludeReplies option include our own replies
This commit is contained in:
parent
929ddb7e76
commit
4c87289e70
1 changed files with 4 additions and 1 deletions
|
|
@ -101,7 +101,10 @@ export class FanoutTimelineEndpointService {
|
|||
|
||||
if (ps.excludeReplies) {
|
||||
const parentFilter = filter;
|
||||
filter = (note) => !isReply(note, ps.me?.id) && parentFilter(note);
|
||||
filter = (note) => {
|
||||
if (note.userId !== ps.me?.id && isReply(note, ps.me?.id)) return false;
|
||||
return parentFilter(note);
|
||||
};
|
||||
}
|
||||
|
||||
if (ps.excludeBots) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue