Skip to content

Commit

Permalink
Change to return the same result as mastodon
Browse files Browse the repository at this point in the history
  • Loading branch information
kphrx committed Jul 25, 2019
1 parent d1e8910 commit cb19493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pleroma/web/activity_pub/activity_pub.ex
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
)
end

defp restrict_pinned(query, %{"pinned" => "true", "pinned_activity_ids" => ids}) do
defp restrict_pinned(query, %{"pinned" => pinned, "pinned_activity_ids" => ids}) when pinned not in ["false", "f", "0", ""] do
from(activity in query, where: activity.id in ^ids)
end

Expand Down

0 comments on commit cb19493

Please sign in to comment.