This commit is contained in:
Gian Sass 2018-04-11 14:55:49 -04:00
parent faa0feb095
commit 907df9b8ed
1 changed files with 8 additions and 3 deletions

View File

@ -212,9 +212,14 @@ def user_statuses(%{assigns: %{user: user}} = conn, params) do
|> Map.put("actor_id", ap_id)
|> Map.put("whole_db", true)
activities =
ActivityPub.fetch_public_activities(params)
|> Enum.reverse()
if params["pinned"] == "true" do
# Since Pleroma has no "pinned" posts feature, we'll just set an empty list here
activities = []
else
activities =
ActivityPub.fetch_public_activities(params)
|> Enum.reverse()
end
conn
|> add_link_headers(:user_statuses, activities, params["id"])