Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to add meta tag for fediverse author attribution #1642

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Syphdias
Copy link
Contributor

@Syphdias Syphdias commented Dec 3, 2024

What does this PR change? What problem does it solve?

Mastodon (and potentially other fediverse clients) can attribute a shared link to a fediverse user.

This adds the ability to do so by setting the social.fediverse_creator to "@user@instance.example.com".

It has the prerequisite that the website the shared link is from is on your allow list. To set this up in Mastodon:

  1. "Preferences" on the right-hand side
  2. "Public profile" on the left-hand side
  3. "Versification" tab in the top bar
  4. In the section "Author attribution", add all relevant domains to the field for "Websites allowed to credit you" (one per line)
  5. "Save changes"

Note that this is not retroactive and failing to set up to the correct domain in the allow list beforehand will not update old links in post and might even be cached for a specific link on a specific instance.

Furthermore, the docs for this feature should include the prerequisite and its pitfall of not setting up the allowed domain beforehand.

Also, this might also be interesting to do on an article basis. It is not for me right now.

PR Checklist

  • This change adds/updates translations and I have used the template present here.
  • I have enabled maintainer edits for this PR.
  • I have verified that the code works as described/as intended.
  • This change adds a Social Icon which has a permissive license to use it.
  • This change does not include any CDN resources/links.
  • This change does not include any unrelated scripts such as bash and python scripts.
  • This change updates the overridden internal templates from HUGO's repository.

Mastodon (and potentially other fediverse clients) can attribute a
shared link to a fediverse user.

This adds the ability to do so by setting the `social.fediverse_creator`
to "@user@instance.example.com".

It has the prerequisite that the website the shared link is from is on
your allow list. To set this up in Mastodon:
1. "Preferences" on the right-hand side
2. "Public profile" on the left-hand side
3. "Versification" tab in the top bar
4. In the section "Author attribution", add all relevant domains to the
   field for "Websites allowed to credit you" (one per line)
5. "Save changes"

Note that this is not retroactive and failing to set up to the correct
domain in the allow list beforehand will not update old links in post
and might even be cached for a specific link on a specific instance.

Furthermore, the docs for this feature should include the prerequisite
and its pitfall of not setting up the allowed domain beforehand.

Also, this might also be interesting to do on an article basis. It is
not for me right now.
Copy link

sonarqubecloud bot commented Dec 3, 2024

@Syphdias
Copy link
Contributor Author

Syphdias commented Dec 3, 2024

A screenshot of what it adds. On the lower one I forgot to add the domain to the allow list, so it has no attribution. It worked for the upper one.
image

@David-Guillot
Copy link

David-Guillot commented Dec 3, 2024

Duplicate of #1619 , which is currently blocked by an unresolved discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants