New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Friendica with C2S - AndStatus is really greedy and confusing #573
Comments
Hi @annando This looks more like a blog post than as an issue to be resolved. And you know it :-) |
The topic of this post is: "I don't know if I implemented C2S correctly or simply don't understand AndStatus". 😬 I see a bunch of posts in the different timelines that I don't really fit to what I think the timelines are thought for - and the items inside don't appear to be in a specific order. I guess it is mostly some: "What have I done wrong with the implementation". |
Answering to the general question: why AndStatus is "greedy". As I see, currently 200 latest notes are downloaded for each new timeline. For active people this is a few days of history. Is this too much? |
Regarding timelines. |
In ActivityPub C2S we have fewer "endpoints" than in older APIs. For example several "legacy" timeline types map to the INBOX. This could really cause AndStatus requesting the same content for "different" timelines. I'm sure there are lots of bugs, not fully implemented things or discussable decisions in current AndStatus ActivityPub implementation simply because there were too few users and their reports so far. I'm glad that I'm starting receiving them now :-) |
The first time I set up the connection, AndStatus took about half an hour downloading posts and images. (The performance is currently 5-10 seconds per page). I now found the setting where I can restrict the amount of posts to fetch. BTW: I just had a look, I'm receiving nearly 2,000 posts and comments a day. Since I found really old stuff there, AndStatus possibly downloaded more than 50,000 posts and comments - which is quite a lot, I think 😁 Concerning the timelines at AndStatus: Yeah, I guess I remember that in the past I already had got problems understanding them as well. Most apps simply map timelines with a specific endpoint, while on AndStatus the posts seems to be fetched from various endpoints and then are displayed according to some specific filters. This is no criticism, but more a lack of understand on my side :-) But to the main problem: why is the content unsorted? Can it be that although I deleted all data during my tests, that there is some cache files still present? |
Concerning possible bugs: Of course I can't occupy your time, but it would be great if you could test on my system with your test account. I'm happy to fix all bugs that will appear. |
Regarding activities sorting in timelines. All other timelines are sorted by "updated date" of an Activity ( "updated" JSON field in ActivityPub) |
Thank you @annando! I will do tests and report to you. Right now I'm investigating correctness and completeness of ActivityPub C2S implementation using microblog.pub, and I do fix AndStatus bugs one by one. That fixes may help you also, e.g. recently I removed one of sources of unneeded server requests (requests for Actor info with invalid ID). |
Hello @annando! I logged into pirati.ca as an ActivityPub type of Social Network.
|
You can open an issue at our repository, I guess that this is the best idea. Posting to the outbox is currently not implemented. Concerning the empty inbox: When you directly call the inbox, what do you see then? |
Calling https://pirati.ca/inbox/andstatus from a Browser I see the same JSON as via API: it has no activities:
Looking via Web UI on the "My posts and conversations" page I do see recent reply to me from mastodon.social. It should have been put into inbox, I think: |
I'm currently experimenting with C2S on Friendica. This implementation is so new, that there isn't even a PR for it. it is currently only running on my develop machine pirati.ca. I'm currently experiencing some weird behaviour which I'm not sure if I made a mistake while coding C2S or if this is some AndStatus functionality.
At first: AndStatus is really greedy. It seems to try to download my full timeline several days in the past:
Can this behaviour be changed? I don't really see a sense in that.
Also it seems as if there is no real order in the timeline. It currently starts with 5 hours ago and decreases, while at the end it is 28 days ago.
Next is: I'm not really sure about the meaning of the different timelines:
Is there any explanation, what they are used for? At first I thought "Public" was the public timeline of the instance. But what is "Everything" then for? "Interactions" (at least on my system) displays a bunch of post that I don't think I interacted with. Does "Private notes" display all posts in my timeline that aren't public?
I guess that a lot of stuff is caused due to bugs in my implementation, although I mostly looked at how Pleroma did and also I had a glance at several discussion threads here.
P.S.: If you want to try out the implementation: It is currently read only. Posting is not yet supported.
The text was updated successfully, but these errors were encountered: