1
0
Fork 0
forked from gitea/nas

Add noai tags

This commit is contained in:
KMY 2023-05-11 09:10:06 +09:00
parent f3867c10de
commit 2317e7ddac
7 changed files with 18 additions and 7 deletions

View file

@ -3,7 +3,10 @@
- content_for :header_tags do
- if @account.user_prefers_noindex?
%meta{ name: 'robots', content: 'noindex, noarchive' }/
%meta{ name: 'robots', content: 'noindex, noarchive, noai, noimageai' }/
- else
%meta{ name: 'robots', content: 'noai, noimageai' }/
%meta{ name: 'CCBot', content: 'nofollow' }
%link{ rel: 'alternate', type: 'application/json+oembed', href: api_oembed_url(url: short_account_status_url(@account, @status), format: 'json') }/
%link{ rel: 'alternate', type: 'application/activity+json', href: ActivityPub::TagManager.instance.uri_for(@status) }/