feat: 🔍 Block all AI crawlers in robots.txt, make users who opt out of indexing not-indexable

This commit is contained in:
Jesse Wierzbinski 2024-06-20 20:01:33 -10:00
parent e74dbe3d59
commit 6c43374d8e
No known key found for this signature in database
4 changed files with 39 additions and 0 deletions

View file

@ -54,5 +54,11 @@ useServerSeoMeta({
title: note.value?.account.display_name,
description: note.value?.content,
ogImage: note.value?.media_attachments[0]?.preview_url,
robots: computed(() => ({
noindex: !!note.value?.account.noindex,
nofollow: !!note.value?.account.noindex,
noarchive: !!note.value?.account.noindex,
noimageindex: !!note.value?.account.noindex,
})),
});
</script>

View file

@ -56,5 +56,11 @@ useServerSeoMeta({
description: computed(() =>
account.value ? account.value.note : undefined,
),
robots: computed(() => ({
noindex: !!account.value?.noindex,
nofollow: !!account.value?.noindex,
noarchive: !!account.value?.noindex,
noimageindex: !!account.value?.noindex,
})),
});
</script>