forked from AkkomaGang/akkoma
Add a TODO note
This commit is contained in:
parent
0e647ff55a
commit
16f4787bf7
1 changed files with 2 additions and 0 deletions
|
@ -1157,6 +1157,8 @@ defp restrict_unlisted(query) 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)
|
||||
|
|
Loading…
Reference in a new issue