parent
f94d9e7547
commit
9738d80cb4
1 changed files with 1 additions and 1 deletions
|
@ -683,7 +683,7 @@ class Status < ApplicationRecord
|
||||||
def set_searchable_follow_on_destroy
|
def set_searchable_follow_on_destroy
|
||||||
return unless public_searchability? || public_unlisted_searchability? || private_searchability?
|
return unless public_searchability? || public_unlisted_searchability? || private_searchability?
|
||||||
return if account.account_stat.nil? || !account.account_stat.searchable_by_follower
|
return if account.account_stat.nil? || !account.account_stat.searchable_by_follower
|
||||||
return if account.statuses.exists?(searchability: %i(public public_unlisted private))
|
return if account.statuses.exists?(searchability: %i(public public_unlisted unlisted private))
|
||||||
|
|
||||||
account.account_stat.update(searchable_by_follower: false)
|
account.account_stat.update(searchable_by_follower: false)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue