Publish noai, noindex or other_settings on activitypub

This commit is contained in:
KMY 2023-05-14 13:22:44 +09:00
parent a4de9fcfdb
commit 062da7f31d
5 changed files with 34 additions and 11 deletions

View file

@ -2,10 +2,10 @@
= "#{display_name(@account)} (#{acct(@account)})"
- content_for :header_tags do
- if @account.user_prefers_noindex?
- if @account.noindex?
%meta{ name: 'robots', content: 'noindex, noarchive, noai, noimageai' }/
%meta{ name: 'CCBot', content: 'nofollow' }/
- elsif @account.user&.setting_noai
- elsif @account.noai?
%meta{ name: 'robots', content: 'noai, noimageai' }/
%meta{ name: 'CCBot', content: 'nofollow' }/