mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-29 08:21:20 +00:00
Avoid DMs showing up in likes
This commit is contained in:
parent
fe8265cb42
commit
2d41eb4874
@ -11,8 +11,6 @@
|
||||
loadPubkeys([pubkey])
|
||||
</script>
|
||||
|
||||
<span class={$$props.class}>
|
||||
@<Anchor modal underline href={path}>
|
||||
{displayPerson($person)}
|
||||
</Anchor>
|
||||
</span>
|
||||
<Anchor modal class={$$props.class} href={path}>
|
||||
@<span class="underline">{displayPerson($person)}</span>
|
||||
</Anchor>
|
||||
|
@ -9,6 +9,7 @@ import {
|
||||
getIdFilters,
|
||||
isContextAddress,
|
||||
LOCAL_RELAY_URL,
|
||||
DIRECT_MESSAGE,
|
||||
REACTION,
|
||||
} from "@welshman/util"
|
||||
import {Tracker} from "@welshman/net"
|
||||
@ -170,6 +171,7 @@ export class FeedLoader {
|
||||
return events.filter(e => {
|
||||
if (repository.isDeleted(e)) return false
|
||||
if (e.kind === REACTION && !isLike(e)) return false
|
||||
if ([4, DIRECT_MESSAGE].includes(e.kind)) return false
|
||||
if (this.isEventMuted(e, strict)) return false
|
||||
if (this.opts.shouldHideReplies && Tags.fromEvent(e).parent()) return false
|
||||
if (getIdOrAddress(e) === this.opts.anchor) return false
|
||||
|
Loading…
Reference in New Issue
Block a user