Publish noai, noindex or other_settings on activitypub
This commit is contained in:
parent
a4de9fcfdb
commit
062da7f31d
5 changed files with 34 additions and 11 deletions
|
@ -293,6 +293,14 @@ class Account < ApplicationRecord
|
|||
true
|
||||
end
|
||||
|
||||
def noindex?
|
||||
user_prefers_noindex? || (settings.present? && settings['noindex']) || false
|
||||
end
|
||||
|
||||
def noai?
|
||||
user&.setting_noai || (settings.present? && settings['noai']) || false
|
||||
end
|
||||
|
||||
def previous_strikes_count
|
||||
strikes.where(overruled_at: nil).count
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue