TranslateProject/sources/tech/20230811 Notes on using a single-person Mastodon server.md
DarkSun 811d820e01 选题[tech]: 20230811 Notes on using a single-person Mastodon server
sources/tech/20230811 Notes on using a single-person Mastodon server.md
2023-08-13 05:03:23 +08:00

20 KiB
Raw Permalink Blame History

Notes on using a single-person Mastodon server

I started using Mastodon back in November, and its the Twitter alternative where Ive been spending most of my time recently, mostly because the Fediverse is where a lot of the Linux nerds seem to be right now.

Ive found Mastodon quite a bit more confusing than Twitter because its a distributed system, so here are a few technical things Ive learned about it over the last 10 months. Ill mostly talk about what using a single-person server has been like for me, as well as a couple of notes about the API, DMs and ActivityPub.

I might have made some mistakes, please let me know if Ive gotten anything wrong!

whats a mastodon instance?

First: Mastodon is a decentralized collection of independently run servers instead of One Big Server. The software is open source.

In general, if you have an account on one server (like ruby.social), you can follow people on another server (like hachyderm.io), and they can follow you.

Im going to use the terms “Mastodon server” and “Mastodon instance” interchangeably in this post.

on choosing a Mastodon instance

These were the things I was concerned about when choosing an instance:

  1. An instance name that I was comfortable being part of my online identity. For example, I probably wouldnt want to be @b0rk@infosec.exchange because Im not an infosec person.
  2. The servers stability. Most servers are volunteer-run, and volunteer moderation work can be exhausting will the server really be around in a few years? For example mastodon.technology and mastodon.lol shut down.
  3. The admins moderation policies.
  4. That servers general reputation with other servers. I started out on mastodon.social, but some servers choose to block or limit mastodon.social for various reasons
  5. The community: every Mastodon instance has a local timeline with all posts from users on that instance, would I be interested in reading the local timeline?
  6. Whether my account would be a burden for the admin of that server (since I have a lot of followers)

In the end, I chose to run my own mastodon server because it seemed simplest I could pick a domain I liked, and I knew Id definitely agree with the moderation decisions because Id be in charge.

Im not going to give server recommendations here, but heres a list of the top 200 most common servers people who follow me use.

using your own domain

One big thing I wondered was can I use my own domain (and have the username @b0rk@jvns.ca or something) but be on someone elses Mastodon server?

The answer to this seems to be basically “no”: if you want to use your own domain on Mastodon, you need to run your own server. (you can kind of do this, but its more like an alias or redirect if I used that method to direct b0rk@jvns.ca to b0rk@mastodon.social, my posts would still show up as being from b0rk@mastodon.social)

Theres also other ActivityPub software (Takahē) that supports people bringing their own domain in a first-class way.

notes on having my own server

I really wanted to have a way to use my own domain name for identity, but to share server hosting costs with other people. This isnt possible on Mastodon right now, so I decided to set up my own server instead.

I chose to run a Mastodon server (instead of some other ActivityPub implementation) because Mastodon is the most popular one. Good managed Mastodon hosting is readily available, there are tons of options for client apps, and I know for sure that my server will work well with other peoples servers.

I use masto.host for Mastodon hosting, and its been great so far. I have nothing interesting to say about what its like to operate a Mastodon instance because I know literally nothing about it. Masto.host handles all of the server administration and Mastodon updates, and I never think about it at all.

Right now Im on their $19/month (“Star”) plan, but its possible I could use a smaller plan with no problems. Right now their cheapest plan is $6/month and I expect that would be fine for someone with a smaller account.

Some things I was worried about when embarking on my own Mastodon server:

  • I wanted to run the server at social.jvns.ca, but I wanted my username to be b0rk@jvns.ca instead of b0rk@social.jvns.ca. To get this to work I followed these Setting up a personal fediverse ID directions from Jacob Kaplan-Moss and its been fine.
  • The administration burden of running my own server. I imported a small list of servers to block/defederate from but didnt do anything else. Thats been fine.
  • Reply and profile visibility. This has been annoying and well talk about it next

downsides to being on a single-person server

Being on a 1-person server has some significant downsides. To understand why, you need to understand a little about how Mastodon works.

Every Mastodon server has a database of posts. Servers only have posts that they were explicitly sent by another server in their database.

Some reasons that servers might receive posts:

  • someone on the server follows a user
  • a post mentions someone on the server

As a 1-person server, my server does not receive that many posts! I only get posts from people I follow or posts that explicitly mention me in some way.

The causes several problems:

  1. when I visit someones profile on Mastodon who I dont already follow, my server will not fetch the profiles content (itll fetch their profile picture, description, and pinned posts, but not any of their post history). So their profile appears as if theyve never posted anything
  2. bad reply visibility: when I look at the replies to somebody elses post (even if I follow them!), I dont see all of the replies, only the ones which have made it to my server. If you want to understand the exact rules about who can see which replies (which are quite complicated!), heres a great deep dive by Sebastian Jambor. I think its possible to end up in a state where no one person can see all of the replies, including the original poster.
  3. favourite and boost accounts are inaccurate usually posts show up having at most 1 or 2 favourites / boosts, even if the post was actually favourite or boosted hundreds of times. I think this is because it only counts favourites/boosts from people I follow.

All of these things will happen to users of any small Mastodon server, not just 1-person servers.

bad reply visibility makes conversations harder

A lot of people are on smaller servers, so when theyre participating in a conversation, they cant see all the replies to the post.

This means that replies can get pretty repetitive because people literally cannot see each others replies. This is especially annoying for posts that are popular or controversial, because the person who made the post has to keep reading similar replies over and over again by people who think theyre making the point for the first time.

To get around this (as a reader), you can click “open link to post” or something in your Mastodon client, which will open up the page on the posters server where you can read all of the replies. Its pretty annoying though.

As a poster, Ive tried to reduce repetitiveness in replies by:

  • putting requests in my posts like “(no need to reply if you dont remember, or if youve been using the command line comfortably for 15 years — this question isnt for you :) )”
  • occasionally editing my posts to include very common replies
  • very occasionally deleting the post if it gets too out of hand

The Mastodon devs are extremely aware of these issues, there are a bunch of github issues about them:

My guess is that there are technical reasons these features are difficult to add because those issues have been open for 5-7 years.

some visibility workarounds

Some people have built workarounds for fetching profiles / replies.

Also, there are a couple of Mastodon clients which will proactively fetch replies. For iOS:

  • Mammoth does it automatically
  • Mona will fetch posts if I click “load from remote server” manually

I havent tried those yet though.

other downsides of running your own server: discovery is much harder

Mastodon instances have a “local timeline” where you can see everything other people on the server are posting, and a “federated timeline” which shows sort of a combined feed from everyone followed by anyone on the server. This means that you can see trending posts and get an idea of whats going on and find people to follow. You dont get that if youre on a 1-person server its just me talking to myself! (plus occasional interjections from my reruns bot).

Some workarounds people mentioned for this:

  • you can populate your federated timeline with posts from another instance by using a relay. I havent done this but someone else said they use FediBuzz and I might try it out.
  • some mastodon clients (like apparently Moshidon on Android) let you follow other instances

If anyone else on small servers has suggestions for how to make discovery easier Id love to hear them.

account migration

When I moved to my own server from mastodon.social, I needed to run an account migration to move over my followers. First, heres how migration works:

  1. Account migration does not move over your posts. All of my posts stayed on my old account. This is part of why I moved to running my own server I didnt want to ever lose my posts a second time.
  2. Account migration does not move over the list of people you follow/mute/block. But you can import/export that list in your Mastodon settings so its not a big deal. If you follow private accounts theyll have to re-approve your follow request.
  3. Account migration does move over your followers

The follower move was the part I was most worried about. Heres how it turned out:

  • over ~24 hours, most of my followers moved to the new account
  • one or two servers did not get the message about the account migration for some reason, so about 2000 followers were “stuck” and didnt migrate. I fixed this by waiting 30 days and re-running the account migration, which moved over most of the remaining followers. Theres also a tootctl command that the admin of the old instance can run to retry the migration
  • about 200 of my followers never migrated over, I think because theyre using ActivityPub software other than Mastodon which doesnt support account migration. You can see the old account here

using the Mastodon API is great

One thing I love about Mastodon is it has an API thats MUCH easier to use than Twitters API. Ive always been frustrated with how difficult it is to navigate large Twitter threads, so I made a small mastodon thread view website that lets you log into your Mastodon account. Its pretty janky and its really only made for me to use, but Ive really appreciated the ability to write my own janky software to improve my Mastodon experience.

Some notes on the Mastodon API:

Next Ill talk about a few general things about Mastodon that confused or surprised me that arent specific to being on a single-person instance.

DMs are weird

The way Mastodon DMs work surprised me in a few ways:

  • Technically DMs are just regular posts with visibility limited to the people mentioned in the post. This means that if you accidentaly mention someone in a DM (“@x is such a jerk”), its possible to accidentally send the message to them
  • DMs arent very private: the admins on the sending and receiving servers can technically read your DMs if they have access to the database. So theyre not appropriate for sensitive information.
  • Turning off DMs is weird. Personally I dont like receiving DMs from strangers its too much to keep track of and Id prefer that people email me. On Twitter, I can just turn it off and people wont see an option to DM me. But on Mastodon, when I turn off notifications for DMs, anyone can still “DM” me, but the message will go into a black hole and Ill never see it. I put a note in my profile about this.

defederation and limiting

There are a couple of different ways for a server to block another Mastodon server. I havent really had to do this much but people talk about it a lot and I was confused about the difference, so:

  • A server can defederate from another server (this seems to be called suspend in the Mastodon docs). This means that nobody on a server can follow someone from the other server.
  • A server can limit (also known as “silence”) a user or server. This means that content from that user is only visible to that users followers people cant discover the user through retweets (aka “boosts” on Mastodon).

One thing that wasnt obvious to me is that who servers defederate / limit is sometimes hidden, so its hard to suss out whats going on if youre considering joining a server, or trying to understand why you cant see certain posts.

theres no search for posts

Theres no way to search past posts youve read. If I see something interesting on my timeline and want to find it later, I usually cant. (Mastodon has a Elasticsearch-based search feature, but it only allows you to search your own posts, your mentions, your favourites, and your bookmarks)

These limitations on search are intentional (and a very common source of arguments) its a privacy / safety issue. Heres a summary from Tim Bray with lots of links.

It would be personally convenient for me to be able to search more easily but I respect folks safety concerns so Ill leave it at that.

other ActivityPub software

Weve been talking about Mastodon a lot, but not everyone who I follow is using Mastodon: Mastodon uses a protocol called ActivityPub to distribute messages.

Here are some examples of other software I see people talking about, in no particular order:

Im probably missing a bunch of important ones.

whats the difference between Mastodon and other ActivityPub software?

This confused me for a while, and Im still not super clear on how ActivityPub works. What Ive understood is:

  • ActivityPub is a protocol (you can explore how it works with blinrys nice JSON explorer)
  • Mastodon servers communicate with each other (and with other ActivityPub servers) using ActivityPub
  • Mastodon clients communicate with their server using the Mastodon API, which is its own thing
  • Theres also software like GoToSocial that aims to be compatible with the Mastodon API, so that you can use a Mastodon client with it

more mastodon resources

  • Fedi.Tips seems to be a great introduction
  • I think you can still use FediFinder to find folks you followed on Twitter on Mastodon
  • Ive been using the Ivory client on iOS, but there are lots of great clients. Elk is an alternative web client that folks seem to like.

I havent written here about what Mastodon culture is like because other people have done a much better job of talking about it than me, but of course its is the biggest thing that affects your experience and it was the thing that took me longest to get a handle on. A few links:

thats all!

I dont regret setting up a single-user server even though its inconvenient, its important to me to have control over my social media. I think “have control over my social media” is more important to me than it is to most other people though, because I use Twitter/Mastodon a lot for work.

I am happy that I didnt start out on a single-user server though I think it would have made getting started on Mastodon a lot more difficult.

Mastodon is pretty rough around the edges sometimes but Im able to have more interesting conversations about computers there than I am on Twitter (or Bluesky), so thats where Im staying for now.


via: https://jvns.ca/blog/2023/08/11/some-notes-on-mastodon/

作者:Julia Evans 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出