Add searchability account/status.compute_searchability test

This commit is contained in:
KMY 2023-08-08 18:28:58 +09:00
parent 8915cb4c2b
commit 114bd48c4b
5 changed files with 180 additions and 5 deletions

View file

@ -514,7 +514,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
note = @account&.note
return nil if note.blank?
searchability_bio = note.scan(SCAN_SEARCHABILITY_RE).first || note.scan(SCAN_SEARCHABILITY_FEDIBIRD_RE).first
searchability_bio = note.scan(SCAN_SEARCHABILITY_FEDIBIRD_RE).first || note.scan(SCAN_SEARCHABILITY_RE).first
return nil unless searchability_bio
searchability = searchability_bio[0]