Fix private searchability from activitypub

This commit is contained in:
KMY 2023-05-22 12:42:16 +09:00
parent 4d4a78f7e3
commit 701163237e

View file

@ -506,7 +506,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
if searchability == visibility
searchability
elsif [:public, :unlisted].include?(searchability) && [:public, :unlisted].include?(visibility) # unlisted is Followers only in kmyblue (generics: private)
elsif [:public, :unlisted, :private].include?(searchability) && [:public, :unlisted, :private].include?(visibility)
:private
else
:direct