Add a TODO note
authorEgor Kislitsyn <egor@kislitsyn.com>
Wed, 15 Apr 2020 12:51:37 +0000 (16:51 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 15 Apr 2020 12:51:37 +0000 (16:51 +0400)
lib/pleroma/web/activity_pub/activity_pub.ex

index 1909ce097a06496e44acafa8c7ee2ff4c6e2283f..5926a6cad2c744872f60bf1d08c242831df40bac 100644 (file)
@@ -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)