fix qyuery

This commit is contained in:
phyzical 2025-08-11 11:50:50 +08:00
parent f5fe554345
commit 12864c30fe
No known key found for this signature in database
GPG key ID: 91E97494BCA22BCF

View file

@ -73,8 +73,8 @@ defmodule Pinchflat.Media.MediaQuery do
[mi, source],
# TODO: this isn't actually correct when not public it could also be unlisted,
# there may be other cases but the exclude case should be correct
source.members_content_behaviour == "only" and mi.public == false or
source.members_content_behaviour == "exclude" and mi.public == true
(source.members_content_behaviour == :only and mi.public == false) or
(source.members_content_behaviour == :exclude and mi.public == true)
)
end