Memmy-App / memmy

An Apollo inspired open-source iOS and Android client for Lemmy built with React-Native. Find us on the App Store and Google Play!
GNU Affero General Public License v3.0
548 stars 59 forks source link

[Feature]: integrate with browse.feddit.de for community subscriber counts #972

Open Hikiru opened 1 year ago

Hikiru commented 1 year ago

Check for open issues

What is the feature that you would like to have added?

Currently subscriber counts aren’t federated (big oversight in my opinion) which can make large communities look a lot smaller. For example, !firefox@lemmy.ml has over 11,000 total subscribers according to browse.feddit.de, but when viewed from Memmy from a sh.itjust.works account it only has around 350. A way for Memmy to mitigate this is to use browse.feddit.de to display subscriber counts.

Solution

Fetch subscriber counts from browse.feddit.de with a toggle to only show local subscriber counts (how it is now). Use the local subscriber count as a fallback in case browse.feddit.de doesn’t have a community for some reason or it goes down.

Alternatives

The only other alternative I can think of would be to try to get the Lemmy devs to add subscriber count federation. I’m pretty sure I opened my own issue about this a while ago though, and never got a response

sgriff96 commented 1 year ago

Do they have an API to integrate with?

Hikiru commented 1 year ago

I couldn't find a github for browse.feddit.de, but I found something similar (lemmyverse.net) with this issue open. https://data.lemmyverse.net/ might have what you need. I'm not a developer so I couldn't tell you

Hikiru commented 1 year ago

Any update on this? Does the link I gave have the data needed for this?

sgriff96 commented 1 year ago

No update, it's pretty low priority so will let you know if there are any issues when we eventually get to it

gkasdorf commented 1 year ago

Yea, we will explore this and see, but I'd say it would be at least another week or so before it happens @Hikiru. I do like the idea though, because I've seen a lot of issues with counts. Probably will do this at the same time as integrating the better search API (if possible).

Hikiru commented 1 year ago

I expected at least a week for something like this. Search and subscriber counts are the biggest issues with lemmy I have rn, I hope the lemmy devs work on it so third party devs don’t have to.

tgxn commented 1 year ago

Howdy, just a comment as I'm going to close the issue on my side. (I should probably add that I made/run lemmyverse.net)

What @Hikiru is possible when this gets deployed in the next ~4 hours https://github.com/tgxn/lemmy-explorer/pull/155

https://data.lemmyverse.net/data/community-metrics/lemmy.ml/afl.meta.json

You could also just hit the instance directly with: GET https://lemmy.ml/api/v3/community?name=abruptchaos image

Searching is another story, you could offer a way to download and cache the chunked community data, as discussed here: https://github.com/thunder-app/thunder/issues/508#issuecomment-1667485426

If you need data in another shape or want additional metrics to be included, I can do that too, just open another issue with me :D