fix Fanout excludeReplies option include our own replies

This commit is contained in:
Hazelnoot 2025-08-14 09:54:29 -04:00
parent 929ddb7e76
commit 4c87289e70

View file

@ -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) {