david on Nostr: Suppose Alice is the logged in user, and you have a list of authors A_I that you wish ...
Suppose Alice is the logged in user, and you have a list of authors A_I that you wish to sort by rank. Step 1: find Alice’s 10040 note, which tells the client where to find her kind 3038x notes. (If not available, use the platform’s default 10040.) Step 2: for each author A_i, fetch one kind 30382 and extract the score using the “rank” tag. Use that score to sort.
Published at
2025-02-05 22:38:37Event JSON
{
"id": "7e03860036be2494dc24cead3ed35afcd80846b8cd998cd166cd3da0add482f8",
"pubkey": "e5272de914bd301755c439b88e6959a43c9d2664831f093c51e9c799a16a102f",
"created_at": 1738795117,
"kind": 1,
"tags": [
[
"e",
"6d4398b28a7ccbed40b8eab15160ffc96cd49b87503f29f901f6d8b3d1aba722",
"wss://filter.nostr.wine/",
"root"
],
[
"e",
"4109e1bf4b60332e42d3f70cad11854513370b421438a4e8902972d3c450b327",
"",
"reply"
],
[
"p",
"f683e87035f7ad4f44e0b98cfbd9537e16455a92cd38cefc4cb31db7557f5ef2"
],
[
"p",
"726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"3356de61b39647931ce8b2140b2bab837e0810c0ef515bbe92de0248040b8bdd"
],
[
"p",
"b0565a0d950477811f35ff76e5981ede67a90469a97feec13dc17f36290debfe"
]
],
"content": "Suppose Alice is the logged in user, and you have a list of authors A_I that you wish to sort by rank. Step 1: find Alice’s 10040 note, which tells the client where to find her kind 3038x notes. (If not available, use the platform’s default 10040.) Step 2: for each author A_i, fetch one kind 30382 and extract the score using the “rank” tag. Use that score to sort.",
"sig": "47b6bc6e3ef53c2dadd7d0eb18fac7327e4fc62518719cea967bbfecce1c3181975e2dee965ac7cec8e216e134f655278e66aa7e35753b3f9ceb25d44729e434"
}