Easy way to fix mastodon verification issue (for wiki over 1MB)

Mastodon can’t parse html files over 1MB, so even if you follow the tips to reduce the size of your wiki, eventually it will becomes too big and you wont be able to link to it.

There is a very easy fix however : host a html file with an iframe that point to your wiki, and put your verification link in that html file. This way your wiki can get as big as you need, and this won’t impact the verification process ! You can also add a javascript redirect, this way your user is not limited by the iframe.

Example:

<link href="https://uiuxdev.social/@telumire" rel="me"/>

<noscript>
    <meta http-equiv="refresh" content="0;URL=https://libro.tiddlyhost.com/">
</noscript>
<script type="text/javascript">
  window.location.replace('https://libro.tiddlyhost.com');
</script>

<iframe src="https://libro.tiddlyhost.com/" style="
position:fixed;
inset:0;
border:0;
width: 100%;
height: 100%;
">

https://libro.tiddlyhost.com is a wiki that is over 2MB, but with this html file mastodon was able to verify my link without issue.

Check it out: Télumire (@telumire@uiuxdev.social) - Designers & Developers

2 Likes