From 9738d80cb4e7d4d2aee9aac272210f0a7388b250 Mon Sep 17 00:00:00 2001 From: KMY Date: Sat, 7 Oct 2023 21:33:47 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"Remove:=20=E5=AD=98=E5=9C=A8=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E6=A4=9C=E7=B4=A2=E8=A8=B1=E5=8F=AF"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit f94d9e754786fc704291c687f6ec341301cf116d. --- app/models/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/status.rb b/app/models/status.rb index c524cbfdfd..4aa490a0a0 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -683,7 +683,7 @@ class Status < ApplicationRecord def set_searchable_follow_on_destroy return unless public_searchability? || public_unlisted_searchability? || private_searchability? 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) end