Fix credo warning
This commit is contained in:
parent
16f4787bf7
commit
65f04b7806
|
@ -1158,7 +1158,9 @@ defp restrict_unlisted(query) do
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: when all endpoints migrated to OpenAPI compare `pinned` with `true` (boolean) only,
|
# 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})
|
defp restrict_pinned(query, %{"pinned" => pinned, "pinned_activity_ids" => ids})
|
||||||
when pinned in [true, "true", "1"] do
|
when pinned in [true, "true", "1"] do
|
||||||
from(activity in query, where: activity.id in ^ids)
|
from(activity in query, where: activity.id in ^ids)
|
||||||
|
|
Loading…
Reference in a new issue