Remove unnecessary characters
This commit is contained in:
parent
8ea90856e6
commit
d563865cbc
1 changed files with 2 additions and 2 deletions
|
@ -515,14 +515,14 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
||||||
end
|
end
|
||||||
|
|
||||||
def default_searchability_from_bio?
|
def default_searchability_from_bio?
|
||||||
note = @account&.note
|
note = @account.note
|
||||||
return false if note.blank?
|
return false if note.blank?
|
||||||
|
|
||||||
note.include?('searchable_by_default_range')
|
note.include?('searchable_by_default_range')
|
||||||
end
|
end
|
||||||
|
|
||||||
def searchability_from_bio
|
def searchability_from_bio
|
||||||
note = @account&.note
|
note = @account.note
|
||||||
return nil if note.blank?
|
return nil if note.blank?
|
||||||
|
|
||||||
searchability_bio = note.scan(SCAN_SEARCHABILITY_FEDIBIRD_RE).first || note.scan(SCAN_SEARCHABILITY_RE).first
|
searchability_bio = note.scan(SCAN_SEARCHABILITY_FEDIBIRD_RE).first || note.scan(SCAN_SEARCHABILITY_RE).first
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue