mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-29 00:10:52 +00:00
Fix muffle
This commit is contained in:
parent
9bdb707d27
commit
090f9d888e
@ -54,6 +54,8 @@ If you like Coracle and want to support its development, you can donate sats via
|
||||
- Stack views?
|
||||
- Put user detail in a modal?
|
||||
- ReplaceState for settings modals?
|
||||
- [ ] Use nip 56 for reporting
|
||||
- https://github.com/nostr-protocol/nips/pull/205#issuecomment-1419234230
|
||||
- [ ] Mentions are sorta weird, usually mention self
|
||||
- [ ] Change network tab to list relays the user is connected to
|
||||
- [ ] Sync mentions box and in-reply mentions
|
||||
|
@ -28,7 +28,9 @@ export const getMuffle = () => {
|
||||
return []
|
||||
}
|
||||
|
||||
return Tags.wrap($user.muffle.filter(t => Math.random() < last(t))).values().all()
|
||||
const shouldMuffle = t => Math.random() > parseFloat(last(t))
|
||||
|
||||
return Tags.wrap($user.muffle.filter(shouldMuffle)).values().all()
|
||||
}
|
||||
|
||||
export const getFollows = pubkey => {
|
||||
|
Loading…
Reference in New Issue
Block a user