GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Annika Backstrom (annika@xoxo.zone)'s status on Monday, 31-Jul-2023 19:38:08 JST Annika Backstrom Annika Backstrom

    One bit of Mastodon internals I don't understand: how does the software determine the "favourite" and "boost" counts for remote statuses? Are the values in `status_stats` ever refreshed from the remote?

    In conversation Monday, 31-Jul-2023 19:38:08 JST from xoxo.zone permalink
    • Embed this notice
      Annika Backstrom (annika@xoxo.zone)'s status on Monday, 31-Jul-2023 20:07:40 JST Annika Backstrom Annika Backstrom
      in reply to
      • التنينوكس

      @dragnucs so for a remote status, "favourites" would be the number of local accounts that favourited the status, and "boosts" would be boosts by local accounts as well as followed remote accounts (also relayed accounts) https://github.com/mastodon/mastodon/blob/d82abc877a65234f453112f7530315ce03cee740/lib/mastodon/cli/cache.rb#L62

      In conversation Monday, 31-Jul-2023 20:07:40 JST permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        https://github.com/mastodon/mastodon/blob/d82abc877a65234f453112f7530315ce03cee740/lib/mastodon/cli/cache.rb
    • Embed this notice
      التنينوكس (dragnucs@social.touha.me)'s status on Monday, 31-Jul-2023 20:07:41 JST التنينوكس التنينوكس
      in reply to

      @annika the instance you are in counts boosts and favorites based on the part of network it knows about. It does not fetch values from the server hosting the post but calculates it itself from known users. For a single user instance those numbers are always too low. Zero most of the time since the server only knows a about a fraction of the network. On the originating instance this number is said to be accurate because all interactions end up there.

      In conversation Monday, 31-Jul-2023 20:07:41 JST permalink
    • Embed this notice
      Annika Backstrom (annika@xoxo.zone)'s status on Monday, 31-Jul-2023 23:01:37 JST Annika Backstrom Annika Backstrom
      in reply to
      • it's B! Cavello 🐝

      @b_cavello After some chats, I think the counts are based on observable local and federated behaviour rather than asking the remote server for canonical counts, which explains why different servers show different numbers

      In conversation Monday, 31-Jul-2023 23:01:37 JST permalink
    • Embed this notice
      it's B! Cavello 🐝 (b_cavello@mastodon.publicinterest.town)'s status on Monday, 31-Jul-2023 23:01:38 JST it's B! Cavello 🐝 it's B! Cavello 🐝
      in reply to

      @annika from what I understand is that it just gets the counts wrong. That’s been my experience comparing the same post accessed from two accounts I have on different servers.

      In conversation Monday, 31-Jul-2023 23:01:38 JST permalink
    • Embed this notice
      Annika Backstrom (annika@xoxo.zone)'s status on Tuesday, 01-Aug-2023 14:50:38 JST Annika Backstrom Annika Backstrom
      in reply to
      • notsoloud

      @notsoloud Do you know if the updated numbers on fedilab are also reflected in the web UI? Or are they local to fedilab

      In conversation Tuesday, 01-Aug-2023 14:50:38 JST permalink
    • Embed this notice
      notsoloud (notsoloud@expressional.social)'s status on Tuesday, 01-Aug-2023 14:50:39 JST notsoloud notsoloud
      in reply to

      @annika
      I use #fedilab, a client with a button for fetching all replies to a post from the remote instance. Pressing this also fetches the number of boosts/likes.

      For instance, at the moment I see your post has 1 boost/0 likes. Pressing the button I get 7/15. How does that match what you see?

      It only gives the updated numbers for the original post, not for all the replies.

      In conversation Tuesday, 01-Aug-2023 14:50:39 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.