upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/FA.md
blob: c9d5d57e5907518b117a1984aa16a9bc7343be9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
NIP-FA
======

Kind-scoped follows
-------------------

`draft` `optional`

This NIP defines kind `967`, a kind-scoped follow event.

```jsonc
{
  "kind": 967,
  "tags": [
    ["p", "<followed-pubkey>", 'relay-url'],
    ["k", "<some-kind>"],
    ["k", "<some-other-kind>"]
  ]
}
```

Multiple `p` tags and multiple `k` tags are allowed.

The `k` tag(s) define the scope of the follows.

### Unfollow action

Unfollowing is done by deleting the follow event, copying over the `k` tags from the follow event.

```jsonc
{
  "kind": 5,
  "tags": [
    ["e", "<follow-event-id>"],
    ["k", "<some-kind>"],
    ["k", "<some-other-kind>"]
  ]
}
```

### Constructing specialized follow lists

A client can fetch the events of the kinds they are interested in, and perhaps adjacent kinds if they choose to. For example, a client specialized in videos might also want to extend its computed follow list to include events related to live streams.

Clients can use the last `kind:967` and `kind:5` tagged with a `k` they care about and use the last `created_at` they have seen to REQ for updates.