aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-15 16:51:37 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-15 16:51:37 +0400
commit16f4787bf7e4849192d999eb2177ca7e1a34fbc9 (patch)
tree75074b1c8725f05ba0ac8499f4101911b90c3bb3
parent0e647ff55aa3128f45cd9df79b8af06da57c009e (diff)
downloadpleroma-16f4787bf7e4849192d999eb2177ca7e1a34fbc9.tar.gz
Add a TODO note
-rw-r--r--lib/pleroma/web/activity_pub/activity_pub.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex
index 1909ce097..5926a6cad 100644
--- a/lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/lib/pleroma/web/activity_pub/activity_pub.ex
@@ -1157,6 +1157,8 @@ 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`
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)