Why Nostr? What is Njump?
2024-10-17 14:08:25
in reply to

Alex Gleason 🐍🚬 on Nostr: Lol yes. Here is the "algorithm": 1. If the Ditto server admin has manually marked ...

Lol yes. Here is the "algorithm":

1. If the Ditto server admin has manually marked any users as "suggested", they will appear at the top, in the order they were marked.

2. Globally "Trending" accounts are appended to this list.

3. Finally, anyone you already follow, mute, or have dismissed as a suggestion is removed.

There's no personalization at all. It would be a good thing to add. Mastodon does it by suggesting accounts you've interacted with but haven't muted or followed, weighing your interactions like: reposts 3, likes 2, and replies 1.

As for the global "Trending Accounts" algorithm, that's done by counting "p" tags in kind 1, 3, 6, and 7 events across the Ditto relay. Due to the way follow lists work on Nostr, this ultimately causes kind 3 to ​rule the algorithm, and what you get is just top followed accounts of all time rather than recently relevant accounts. BUT, when I tried removing kind 3 from the calculation it prioritized controversial accounts, which is arguably worse.

We are doing a lot with limited resources, using only TypeScript and Postgres, so Ditto remains easy to develop and easy for people to self-host. Something like Redis would make this task easier, but we don't do it. So we need to devise clever solutions to these problems, and turn "good enough" into "gooder enough".
Author Public Key
npub1q3sle0kvfsehgsuexttt3ugjd8xdklxfwwkh559wxckmzddywnws6cd26p