This should be required reading for users of social media:
Anyone Can Become a Troll: Causes of Trolling Behavior in Online Discussions (research from Stanford & Cornell universities)
https://files.clr3.com/papers/2017_anyone.pdf
And also Dr. Molly Crockett's work on punishment and retribution. (Spoiler: we punish people because it feels good.)
https://www.psy.ox.ac.uk/team/molly-crockett
@gargron doesn't have time to read much but the Stanford paper has ideas on UI design.
Chirp! is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All Chirp! content and data are available under the Creative Commons Attribution 3.0 license.