fix: Filter a tagged as replies on timeline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kieran 2023-10-11 11:47:37 +01:00
parent ece4219180
commit c239fba3df
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -49,7 +49,7 @@ const TimelineFollows = (props: TimelineFollowsProps) => {
function <T extends NostrEvent>(nts: Array<T>) {
const a = nts.filter(a => a.kind !== EventKind.LiveEvent);
return a
?.filter(a => (props.postsOnly ? !a.tags.some(b => b[0] === "e") : true))
?.filter(a => (props.postsOnly ? !a.tags.some(b => b[0] === "e" || b[0] === "a") : true))
.filter(a => !isMuted(a.pubkey) && login.follows.item.includes(a.pubkey) && (props.noteFilter?.(a) ?? true));
},
[props.postsOnly, muted, login.follows.timestamp],