projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16f4787
)
Fix credo warning
author
Egor Kislitsyn
<egor@kislitsyn.com>
Wed, 15 Apr 2020 13:16:32 +0000
(17:16 +0400)
committer
Egor Kislitsyn
<egor@kislitsyn.com>
Wed, 15 Apr 2020 13:16:32 +0000
(17:16 +0400)
lib/pleroma/web/activity_pub/activity_pub.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/activity_pub.ex
b/lib/pleroma/web/activity_pub/activity_pub.ex
index 5926a6cad2c744872f60bf1d08c242831df40bac..fa913a2aa0b4ee06bc9a61191da3c2815a8ba872 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub.ex
@@
-1158,7
+1158,9
@@
defmodule Pleroma.Web.ActivityPub.ActivityPub do
end
# TODO: when all endpoints migrated to OpenAPI compare `pinned` with `true` (boolean) only,
- # the same for `restrict_media/2`, `restrict_replies/2`, 'restrict_reblogs/2' and `restrict_muted/2`
+ # the same for `restrict_media/2`, `restrict_replies/2`, 'restrict_reblogs/2'
+ # and `restrict_muted/2`
+
defp restrict_pinned(query, %{"pinned" => pinned, "pinned_activity_ids" => ids})
when pinned in [true, "true", "1"] do
from(activity in query, where: activity.id in ^ids)