Format activity_pub.ex
This commit is contained in:
parent
845f3d226f
commit
8612f0ac79
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue