Mastodon Website Verification and Author Attribution on Obsidian Publish

To verify a Mastodon account, one has to add the code below to the home page of a website. The code can be easily added to an Obsidian note that is published via Obsidian Publish.

<a rel="me" href="https://mastodon.social/@vladcampos"></a>

However, because of the way Obsidian Publish builds the website pages, that code doesn’t show up on the published page, therefore Mastodon’s validation system can’t see it.

As for author attributions on articles, one has to add the code below to the home page of a website.

<meta name="fediverse:creator" content="@[email protected]">

Just like mentioned above, it is possible to do it on a note, but, again, it is not visible on the website and Mastodon cannot use this to give attribution to authors.

Although the codes above can be in any part of the home page, probably a more broad solution that would cover other setting beyond Mastodon, would be to have some sort of head.html note, similar to publish.css where we could add codes like the above inside the <head></head> tags.

1 Like

why this doesn’t work?

I have no idea. I’m not a dev. But you can try it yourself. Past the code to a note, publish it, and then look at the published page source code. The Mastodon codes will not be there.

As an additional note, my Mastodon account is currently verified because I did that before migrating to Obsidian Publish. If I change anything and save my profile again, Mastodon will look for the code and because it will not find it, the verification will be removed. I can confirm this with certainty, as I experienced it myself during the migration process to Obsidian Publish.

1 Like

Same question here. I tried adding the following snippet at different locations in my note:

<meta name="fediverse:creator" content="@[email protected]">

But it seems like Publish runs a sanitize script that removes this HTML from the published version.

I also looked through the Publish SEO metadata docs and the Obsidian Publish resources thread, and neither had a solution.

Any solutions for this?

The meta cannot work because it has to be added to the head section of the generated HTML.

<a href=... rel=me works

This

<a rel="me" href="https://mastodon.social/@vladcampos">campos profile</a>

produces

vivaldi_MrTEuVcv6m

Unfortunately these are two distinct functionalities. One is about account verification, while the other is about author attribution. Both are important.

I understand, that’s why I said website verification works (or should work). I tested it.

Author attribution can’t currently.

1 Like

I appreciate you letting us know. Is there a plan to change this at some point in the foreseeable future?

Much respect and appreciation to the Obsidian team :folded_hands: