1
0
Fork 0
mirror of https://git.pleroma.social/pleroma/pleroma.git synced 2026-02-15 17:16:57 +00:00

MastoAPI: Fix misattribution when fetching status by Activity FlakeID

This commit is contained in:
Phantasm 2025-12-22 23:33:00 +01:00
parent c06fcc7f5d
commit c2b40659e7
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8

View file

@ -240,7 +240,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
def render("show.json", %{activity: %{data: %{"object" => _object}} = activity} = opts) do
object = Object.normalize(activity, fetch: false)
user = CommonAPI.get_user(activity.data["actor"])
user = CommonAPI.get_user(object.data["actor"])
user_follower_address = user.follower_address
like_count = object.data["like_count"] || 0