Add noai config

This commit is contained in:
KMY 2023-05-11 10:57:42 +09:00
parent 2317e7ddac
commit 424dc584a9
9 changed files with 24 additions and 4 deletions

View file

@ -4,10 +4,11 @@
- content_for :header_tags do
- if @account.user_prefers_noindex?
%meta{ name: 'robots', content: 'noindex, noarchive, noai, noimageai' }/
- else
%meta{ name: 'CCBot', content: 'nofollow' }/
- elsif @account.user&.setting_noai
%meta{ name: 'robots', content: 'noai, noimageai' }/
%meta{ name: 'CCBot', content: 'nofollow' }/
%meta{ name: 'CCBot', content: 'nofollow' }
%link{ rel: 'alternate', type: 'application/rss+xml', href: @rss_url }/
%link{ rel: 'alternate', type: 'application/activity+json', href: ActivityPub::TagManager.instance.uri_for(@account) }/