Skip to content
Snippets Groups Projects
Commit 907df9b8 authored by Gian Sass's avatar Gian Sass
Browse files

Fix issue #124

parent faa0feb0
No related branches found
No related tags found
No related merge requests found
......@@ -212,9 +212,14 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController 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"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment