Merge pull request #36 from anatawa12/noindex-sensitive-channel

Noindex sensitive channel
This commit is contained in:
anatawa12 2023-08-06 23:01:29 +09:00 committed by GitHub
commit ac0398be74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@
- ハイライトからのおはnoteの除外でCWを見忘れていたのを修正
- チャンネルをセンシティブ指定できるようになりました
- ハイライトから除外するチャンネルをsensitiveチャンネルのみにしました
- センシティブチャンネルのNoteがクローラーによるインデックスを拒否するようになりました
### Client
- センシティブチャンネルのNoteのReNoteはデフォルトでHome TLに流れるようになりました

View File

@ -28,7 +28,7 @@ block og
// FIXME: add embed player for Twitter
if images.length
meta(property='twitter:card' content='summary_large_image')
each image in images
each image in images
meta(property='og:image' content= image.url)
else
meta(property='twitter:card' content='summary')
@ -36,7 +36,8 @@ block og
block meta
if user.host || isRenote || profile.noCrawle
// TODO: make user configurable if sensitive channel note should be indexed or not
if user.host || isRenote || profile.noCrawle || (note.channel && note.channel.isSensitive)
meta(name='robots' content='noindex')
if profile.preventAiLearning
meta(name='robots' content='noimageai')