phanpy icon indicating copy to clipboard operation
phanpy copied to clipboard

Message synchronization issue with snac2 as backend

Open Menelmacar opened this issue 10 months ago • 6 comments

Site

fedi.snikket.de

Version

2025.01.26.24f03f5

Instance

snikket.de/social

Browser

  • Fennec fdroid 134.0.0 (Build #1340020), hg-b8005f63d9eb

Bug description

When the fediverse server is a snac instance, then Phanpy can only synchronize the last 40 messaages when on uses the catch up feature. Without catchup it is often less then 40 messages upon login. One can't scroll for further in the past and it will tell "the end" at the end of the website.

Some mastodon API clients like Androids tusky or fedilab work, but for an unknown reason Phanpy only can see the past few posts in the timeline. (up to 40)

To reproduce

Install snac2, install Phanpy. Interact a while to get some messages in the timeline. Try to scroll down, past the last 40 messages. It will say "the end" even if there are more messages in the timeline in reality.

Expected behavior

Show more then the last 40 messages, let it see all messages from the timeline.

Other

Related snac issue here: https://codeberg.org/grunfink/snac2/issues/164

Menelmacar avatar Feb 01 '25 18:02 Menelmacar

@Menelmacar I don't have a test server to test this, but suspect that snac2's API is lacking Link header with rel="next" URL.

cheeaun avatar Feb 02 '25 06:02 cheeaun

Same thing for Sharkey too. I've counted 16-18 posts till "The end"

SadmL avatar Feb 02 '25 08:02 SadmL

Seems snac returns the Link HTTP header with the related rel="next" part. So something else could be the problem.

Menelmacar avatar Feb 02 '25 08:02 Menelmacar

I have this problem too, and I’m a huge fan of Phanpy. I can provide an account on my snac2 server for you to test.

p4tpr0 avatar Mar 17 '25 13:03 p4tpr0

@p4tpr0 if you can provide me a temporary account, that'll be great! (DM me)

cheeaun avatar Mar 19 '25 10:03 cheeaun

DM sent!

p4tpr0 avatar Mar 19 '25 11:03 p4tpr0

I’ll probably shut down my snac2 instance in a couple of weeks. Do you need more time for testing?

p4tpr0 avatar May 02 '25 16:05 p4tpr0

@p4tpr0 sorry, totally missed this. I actually didn't get your DM for some reason.

cheeaun avatar May 08 '25 13:05 cheeaun

No problem, I’ve sent you a new message on mastodon. Let me know if you got it.

p4tpr0 avatar May 08 '25 14:05 p4tpr0

Posted my findings here https://codeberg.org/grunfink/snac2/issues/164#issuecomment-4415162

cheeaun avatar May 09 '25 03:05 cheeaun

I think I can close this now, the access-control-expose-headers: Link is now Included in the snac master and it seems this issue is gone now. Thank you for the investigation @cheeaun Oh and thank for you phanpy in general 😊.

Menelmacar avatar May 10 '25 14:05 Menelmacar

@cheeaun : let me know if I can close my test Snac2 server (I don’t have any use for it anymore)

p4tpr0 avatar May 11 '25 19:05 p4tpr0

@p4tpr0 hey thanks! I think you can close it now as the issue seems fixed 🙇‍♂️

cheeaun avatar May 12 '25 05:05 cheeaun