Fix issue #124
This commit is contained in:
parent
faa0feb095
commit
907df9b8ed
@ -212,9 +212,14 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
|||||||
|> Map.put("actor_id", ap_id)
|
|> Map.put("actor_id", ap_id)
|
||||||
|> Map.put("whole_db", true)
|
|> Map.put("whole_db", true)
|
||||||
|
|
||||||
activities =
|
if params["pinned"] == "true" do
|
||||||
ActivityPub.fetch_public_activities(params)
|
# Since Pleroma has no "pinned" posts feature, we'll just set an empty list here
|
||||||
|> Enum.reverse()
|
activities = []
|
||||||
|
else
|
||||||
|
activities =
|
||||||
|
ActivityPub.fetch_public_activities(params)
|
||||||
|
|> Enum.reverse()
|
||||||
|
end
|
||||||
|
|
||||||
conn
|
conn
|
||||||
|> add_link_headers(:user_statuses, activities, params["id"])
|
|> add_link_headers(:user_statuses, activities, params["id"])
|
||||||
|
Loading…
Reference in New Issue
Block a user