LemmurOrg / lemmur

🐒 A mobile client for lemmy
GNU General Public License v2.0
268 stars 30 forks source link

Cannot (always) interact with remote posts #307

Closed Ekain06 closed 2 years ago

Ekain06 commented 2 years ago

Device info

Describe the bug

I (seemingly randomly) cannot interact with posts from other instances in my feed -- the app tells me I am not logged in (even though I am and can interact with my instance's (lemmy.ml) and sometimes other's posts).

Steps to reproduce

  1. Open lemmurr.
  2. Sort by everything - all.
  3. Scroll until you find a post in another instance.
  4. Try to vote (or comment) on it (sometimes it works, sometimes it doesn't)
  5. Get told "you have to be logged in to do that [log in]" in the bottom of your screen.

Relevant logs

Logs Paste your logs here. Logs can be found in lemmur: settings > about lemmur > logs. "no logs"

Expected behavior

To be able to interact with posts in other instances consistently.

Screenshots/Screencasts

Screenshot_20211206-095358_lemmur (Pressed the down arrow. I am logged in with a lemmy.ml account)

Screenshot_20211206-095638_lemmur

Screenshot_20211206-095642_lemmur

Additional context

krawieck commented 2 years ago

this is because the context of the post is an instance that you're not logged into. so the app tries to upvote it from the perspective of that instance.

to better illustrate what's happening let's say that we have 2 instances: A and B. A federates B, i am only logged in to B, but when browsing all the posts in A i also see posts from B. now if i upvote them nothing will happen because i was browsing it from the context of A, (aka. i was interacting with A's server)

i hope i made it understandable. this is something that we are aware of and really want to improve in the future, tho we don't yet have a clear solution how to fix it.

krawieck commented 2 years ago

also, closing cuz duplicate of #153