Skip to content

Commit

Permalink
[backend] Embeded notes respect noCrawl/noAI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriha-chan committed Oct 3, 2023
1 parent 0366fbf commit b64a298
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/backend/src/server/web/views/embed/note.pug
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ block meta
link(rel='alternate' href=url type='application/activity+json')
if note.uri
link(rel='alternate' href=note.uri type='application/activity+json')
if user.host || isRenote || profile.noCrawle
meta(name='robots' content='noindex')
if profile.preventAiLearning
meta(name='robots' content='noimageai')
meta(name='robots' content='noai')
script(id='remote_custom_emojis' type='application/json') !{JSON.stringify(noteEmoji)}
block content
Expand Down

0 comments on commit b64a298

Please sign in to comment.