1
0
Fork 0
forked from gitea/nas

Unlisted visibility with public searchability

This commit is contained in:
KMY 2023-07-04 13:27:28 +09:00
parent c8d30bed3c
commit ca66c47649
2 changed files with 2 additions and 2 deletions

View file

@ -528,7 +528,7 @@ class Status < ApplicationRecord
def set_searchability
return if searchability.nil?
if visibility == 'public' || visibility == 'public_unlisted' || visibility == 'login'
if visibility == 'public' || visibility == 'public_unlisted' || visibility == 'login' || (visibility == 'unlisted' && account.local?)
self.searchability = [Status.searchabilities[searchability], Status.visibilities['public']].max
elsif visibility == 'limited'
self.searchability = Status.searchabilities['limited']