nips icon indicating copy to clipboard operation
nips copied to clipboard

Mute by kind

Open SnowCait opened this issue 1 year ago • 2 comments

It would be nice to be able to mute particular pubkey's kind like "mute retweets" in X (Twitter).

  • Reposts (kind 6, 16)
  • Reactions (kind 7)
  • Zaps (kind 9735)
  • etc

JSON

Based on NIP-51 sets.

{
  "kind": 30007,
  "content": "<encrypted tags>",
  "tags": [
    ["d", "<kind>"],
    ["p", "<pubkey 1>"],
    ["p", "<pubkey 2>"]
  ]
}

Tags

  • d (MUST): kind string
  • ps (MAY): pubkeys
    • Same as kind 10000

SnowCait avatar Apr 02 '24 06:04 SnowCait

I like your solution.

It seems the k tag is only included for aesthetic purposes. I would remove it and filter by d tag.

alexgleason avatar Apr 02 '24 06:04 alexgleason

Indeed. Deleted.

SnowCait avatar Apr 02 '24 06:04 SnowCait