Skip to content

Instantly share code, notes, and snippets.

@DerekNonGeneric
Created May 1, 2017 14:59
Show Gist options
  • Save DerekNonGeneric/d8f1a45b0b0117ef6bcf92d0d6102fe3 to your computer and use it in GitHub Desktop.
Save DerekNonGeneric/d8f1a45b0b0117ef6bcf92d0d6102fe3 to your computer and use it in GitHub Desktop.

Mastodon v1.3.2 Infxn

Build Status Code Climate

Original README.md

This is a fork of Mastodon, a GNU Social-compatible microblogging server, for the Infinimatix Network instance.

Infinimatix, coined by blending infinity and informatics, is a community of interest in informatics with a federated node in the Mastodon fediverse.

Maintaining this fork allows us to collaborate in making modifications unique to our instance. Feel free to create an issue or make a pull request, but keep in mind this is not the original project. If everyone can benefit from your change, please consider making your proposal there instead.

What is Infxn?

Infxn (pronounced "infection"), is the name of the Infinimatix Network instance's Mastodon mod. Key differences include:

  • The Grow static site generator has been integrated in order to serve static AMP pages
  • The about and about/more pages have been replaced with custom static AMP pages
  • The "toot" and "boost" verbs have been renamed to "beam" and "relay", respectively
  • The original Mastodon color palette and visual identity assets have been changed to use our own

For a more detailed list of differences, see: Differences between Mastodon v1.3.2 and v1.3.2 Infxn.

If you would like, you can support the development of this mod on Patreon.

Differences

This file aims to document the differences between the original Mastodon release and the Infxn mod.

Between v1.3.2 and v1.3.2-infxn

Naming in several files

  • The name, description, repository, and logo fields in various app JSON files
  • The HTTP Server header (from Mastodon to Mastodon v1.3.2 Infxn) in /config/environments/production.rb
  • The Vagrant VirtualBox VM hostname (from mastodon.dev to infinimatix.dev)
  • The Vagrant VirtualBox VM name (from mastodon to mastodon-v1.3.2-infxn)
  • The repo_url, branch, and application fields in /config/deploy.rb

However, most internal code retains the original name for consistency and compatibility.

Visual identity palette and assets

  • Color palette variables in /app/assets/stylesheets/variables.scss
  • Several colors throughout /app/assets/stylesheets/
  • Static assets in /public/
  • The "About" page logo (from PNG to SVG)
  • Uncompiled assets in /app/assets/images/

Several headers have been added

  • Content-Security-Policy has been added to /app/controllers/application_controller.rb
  • Access-Control-Allow-Origin and AMP-Access-Control-Allow-Source-Origin have been added to /config/environments/production.rb

Support for static AMP pages has been added

  • A CSRF API has been added in /app/controllers/api/v1/
  • The Grow static site generator has been integrated in order to generate static AMP pages
  • Several CSS files, with styles in line with the Infinimatix visual identity, have been added to support static pages

Custom static pages have been added

  • A custom AMP "About" page has been added to /content/pages/
@DerekNonGeneric
Copy link
Author

/cc @sabine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment