The way Twitter users dealt with #DM #spam was to block DMs from non-followers. There are settings with similar effect on Facebook.
You can also do that on #Mastodon.
THIS IS NOT A HACK. It's literally why the feature exists. Use it. Maybe instead of banhammering the largest single instance on the #Fediverse.
