diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index a0a8891253..a112ada84f 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -641,7 +641,10 @@ defp fetch_activities_for_user(user, reading_user, params) do |> Map.put(:type, ["Create", "Announce"]) |> Map.put(:user, reading_user) |> Map.put(:actor_id, user.ap_id) - |> Map.put(:pinned_object_ids, (if user.pinned_objects, do: Map.keys(user.pinned_objects), else: [])) + |> Map.put( + :pinned_object_ids, + if(user.pinned_objects, do: Map.keys(user.pinned_objects), else: []) + ) params = if User.blocks?(reading_user, user) do