amethyst
amethyst copied to clipboard
[FEATURE] follows/followers lists sorting
Is your feature request related to a problem? Please describe. Currently, the followers list seems to appear in a random order. The follows list is displayed in a chronological order.
Describe the solution you'd like Offer three different ways of ordering:
- by sats sent/received (account with the highest zap amount sent/received on top)
- chronological order (based on the date of the follow)
- by their respective follower count (based on the number of their followers, account with highest follower count on top) The user can switch from one to the other. They can determine their default sorting algorithm
Bounty (in Bitcoin sats) offered for the implementation 100k sats
Hello, I would be happy to contribute and work on this. Is it possible ?
For sure.. feel free to send a Pull Request.
The issue is for 2 and 3. There is no way to know the follow date, only the last time a given user changed the following/follower file. There is also no way to easily compute follower count to sort people. There are some off spec solutions from private relays on follower count, but it's trusted information from the relay account.
The current order for following is the order in the event itself. If clients follow that, the last person the user followed comes first in the list.
The spec indeed encourages relays to delete old contact lists. You won't be able to reliably get the following/follower date.
Relays and clients SHOULD delete past contact lists as soon as they receive a new one.
Hello, I underestimated the issue initially and spent the night working and looking through the code. Unfortunately, there is no direct way to retrieve the following/follower date and it's a bit complicated.
Hi there,
Correct, this is not possible, (or rather very tricky). It was already mentioned in this thread. I'm sorry to hear you've spent so much time on it. I will update the FR accordingly.
You may still be able to sort based on the total amount of sats received and sent. Do you fancy look into it?
Best
Sent with Tutanota, enjoy secure & ad-free emails.
1 May 2023, 14:36 by @.***:
Hello, I underestimated the issue initially and spent the night working and looking through the code. Unfortunately, there is no direct way to retrieve the following/follower date and it's a bit complicated.
— Reply to this email directly, > view it on GitHub https://github.com/vitorpamplona/amethyst/issues/383#issuecomment-1529717163> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/ABQMG7BVKDQIHOMK7CEVCQ3XD6343ANCNFSM6AAAAAAXP3LTZE> . You are receiving this because you authored the thread.> Message ID: > <vitorpamplona/amethyst/issues/383/1529717163> @> github> .> com>
Hi,
Thank you for letting me know about the update. I'm glad to hear that we can sort based on the total amount of sats received and sent. I would be happy to take a look at it and see if I can find a solution.
I just wanted to add I referenced this issue here: note1rzu45dvzs8djt8lg83n45a30uhqh46uuha2pesa0mdjn8d4edvcqw3t8x7 I have some lists showing that I'd like to hide. I think this fits into the list curation you are discussing here. If you think It should be a separate issue let me know. I'll add 21k to this bounty as well.