I keep seeing posts without upvotes/downvotes in my feed that I am sure I’ve voted. It’s possible that I voted them on a different client on my phone.

I would think that this persists across clients/pages, is this not the case?

  • smorks@lemmy.caM
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    yes, it should persist across clients/pages. many mobile clients are fairly early in development so there is a good possibility that there’s bugs.

  • hawkwind@lemmy.management
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    This is like 60% educated guess and I didn’t bother to research, but I think your client (website, app, etc.) is responsible for keeping track of what you upvote temporarily rather than asking the server. The server just returns the total counts to clients. However, the server DOES track it, and even if your client lets you upvote again, it doesn’t actually affect the total count.

    For federation, your local instance may also “keep track,” but same rules apply. You can only vote once, even if (because of the implementation) it might seem otherwise.

    • Anony Moose@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Yeah, that’s what it feels like for sure. I would hope that eventually the API responds with my vote status too to all clients.

      • hawkwind@lemmy.management
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Total speculation. I just assume the implementation tries to avoid users querying the source database for every single users vote status. At best I can see it increasing the count, decreasing the count or denying those.