Event JSON
{
"id": "efd863cac5129987ab7c1d67c348cff38be4605d676838b4f9c33161d6a1d219",
"pubkey": "13522c83aa69ec0cff41dbff5f3a55e64aa998c5a20934fb15a2ca63108b8cf1",
"created_at": 1781952558,
"kind": 1,
"tags": [
[
"t",
"mastodon"
],
[
"t",
"fyp"
],
[
"proxy",
"https://mementomori.social/@rolle/116782042894529069",
"web"
],
[
"t",
"opensource"
],
[
"t",
"mastoadmin"
],
[
"imeta",
"url https://media.mementomori.social/media_attachments/files/116/782/033/481/448/181/original/34a8187416a486ca.png",
"m image/png"
],
[
"proxy",
"https://mementomori.social/users/rolle/statuses/116782042894529069",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mementomori.social/users/rolle/statuses/116782042894529069",
"pink.momostr"
],
[
"-"
]
],
"content": "Now that I've dug my hands deep into the Mastodon core, it looks like it's definitely possible to get the original home instance counts for federated posts, not just your own server's local tally.\n\nFor boosts and favourites, recent versions of Mastodon already fetch the origin's reported totals when retrieving a post and store them as \"untrusted counts\" (untrusted because the remote server self-reports them). So a remote post carries the home server's actual numbers.\n\nReplies are trickier, as they only federate to subscribed servers, so the local count tends to lag. However, you can fetch the full reply tree from the origin on demand.\n\nI'm basing our algorithmic home feed exactly on that: boosts and favourites from the origin counts, and comments from a backfilled reply tree.\n\nAdd opt-in ranked home timeline (experimental) \n#4 \nhttps://github.com/mementomori-social/mastodon/pull/4\n\nThe numbers in question have been requested for ages:\n\nBoosts and favourites counts #22627 \nhttps://github.com/mastodon/mastodon/discussions/22627\n\nShow the number of reshares, likes, and comments directly in the timeline\n#8280 \nhttps://github.com/mastodon/mastodon/issues/8280\n\n#MastoAdmin #OpenSource #Mastodon #FYP\nhttps://media.mementomori.social/media_attachments/files/116/782/033/481/448/181/original/34a8187416a486ca.png\n",
"sig": "9476d4cc35baebe60498694ec203ee84bfb042fed1eae9f12e3a2b368462d630766487360d98f6911c64eec377afcce80d952e79f67471c76ff51c7f7e65d9eb"
}