Format activity_pub.ex

This commit is contained in:
NEETzsche 2021-11-24 07:41:44 +00:00
parent 845f3d226f
commit 8612f0ac79

View file

@ -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