mirror of
https://github.com/jakejarvis/mastodon-utils.git
synced 2025-04-26 04:35:21 -04:00
2.1 KiB
2.1 KiB
🦣 Mastodon randomness
Random opinionated helper scripts & front-end customizations for my personal Mastodon instance (running on glitch-soc
). You definitely don't want to use any of this as-is — check out my more general purpose mastodon-installer scripts instead.
Usage
AGAIN, DEFINITELY DO NOT JUST RUN THIS IF YOU'RE NOT ME!!! 😊
git clone https://github.com/jakejarvis/mastodon-scripts.git /home/mastodon/scripts
# apply vanilla patches:
cd /home/mastodon/live
git apply --allow-binary-replacement /home/mastodon/scripts/patches/*.patch
# apply glitch-only patches:
if [ -d /home/mastodon/live/app/javascript/flavours/glitch ]; then
git apply --allow-binary-replacement /home/mastodon/scripts/patches/glitch/*.patch
fi
# compile new assets:
RAILS_ENV=production bundle exec rails assets:precompile
chown -R mastodon:mastodon /home/mastodon/{scripts,live}
# restart Mastodon:
systemctl restart mastodon-*
Patches
favicons.patch
: Use custom icon images instead of Mastodon logorobots.patch
: Disallow search engines for all of Mastodonsystem-font.patch
: Use the system's default sans-serif font stack instead of Robotohide-contact-email.patch
: Hides themailto:
link on the About pagehide-rules.patch
: Applies just to homepage, meant only for single-user instanceshide-signup.patch
: Hide the "create account" button (for aesthetics, not security!)- [
glitch-soc
only]sidebar-logo.patch
: Restore Mastodon logo in logged-out sidebar
License
MIT