Well, I just got myself "#verified" on my own #Mastodon server, so that was fun - NOT! Here's how I did it, because the default instructions don't work if your main front page to your domain name IS your Mastodon root drive. Because Mastodon does everything dynamically using #RubyOnRails, so there's no "index.html" page to edit to add the required #verification link!
Was it worth it for the little green checkmark on my profile on my server? I dunno. But it was a challenge.
---
1. Went to /home/mastodon/live/app/views/layouts/
and edited the file "application.html.haml" to include the following lines at the bottom:
.ownerContainer
%a{:href => "https://westodon.com/@West", rel: "me", class: "centered-link"} Owner's Profile
What this does is make a link at the bottom of your main Mastodon page (it's okay, it gets replaced later with all sorts of other stuff), that's centered on the page, and contains the URL to my profile. So for you, change that URL of course.
...And then I saved it (required admin password/sudo)
2. Cleared the #Ruby cache. This was actually the most complicated part, because it required multiple additional steps that I wasn't expecting.
To clear the cache, you have to run the following line:
RAILS_ENV=production bundle exec rake tmp:cache:clear
But I got an error. To fix that error, I had to do ALL of the following:
Install Ruby with:
sudo snap install ruby --classic
and then do:
bundle install
and then do:
yarn install
ONLY THEN was I finally able to clear the cache with the part way above on the top of step 2 up there.
3) Then I did this Ruby precompile command:
RAILS_ENV=production bundle exec rails assets:precompile
4) Then I restarted Mastodon services:
sudo systemctl restart mastodon-*
5) Preferences > Public Profile
Under Public Profile's main "tab", I entered the required "Extra field". Label - "Westodon", Content - "https://westodon.com"
> Save Changes
6) Verification "tab" (Still under Preferences > Public Profile), scrolled ALL the way to the bottom, to the section called "Websites allowed to credit you", and put my "westodon.com" on its own line and hit Enter
7) Finally, under Administration > Server Settings > Appearance, I stuck the following lines in the "Custom CSS" Section:
.ownerContainer {
text-align: center; /* Centers inline content within the container */
}
.centered-link {
/* Optional: further styling for the link itself */
display: inline-block; /* Allows margin: auto for block-level centering if desired, but text-align on parent is usually sufficient for links */
margin: 0 auto; /* This would center a block-level element, but works with inline-block too */
padding: 10px 20px;
background-color: lightblue;
text-decoration: none;
color: #333;
}
---
After that, I reloaded my website and BAM! Finally got my verification #checkmark. Now, I'm not sure if ALL of these steps were required, but those are all the steps I did, and when I was done, I was finally verified.
I feel like it should be easier to do this from within the Admin settings directly... /sigh