Scalie.Business fork of Mastodon
Go to file
Shin Kojima e7c0d87d98 Fix embedded SVG fill attribute (#4086)
* Fix embedded SVG fill attribute

SCSS darken/lighten functions may not return a color value, but a color
name like "white".  See following example:

https://www.sassmeister.com/gist/c41da93b87d536890ddf30a1f42e7816

This patch will normalize $color argument to FFFFFF style.

I also changed the function name from "url-friendly-colour" to
"hex-color", Because...

1. The name "url-friendly" is not meaningful enough to describe what it
   does.

2. It is familier to me using "color" rather than "colour"

    kojima:kojiMac mastodon[master]$ git grep -l colour
    app/javascript/styles/boost.scss
    spec/fixtures/files/attachment.jpg

    kojima:kojiMac mastodon[master]$ git grep -l color
    .rspec
    .scss-lint.yml
    Gemfile.lock
    app/javascript/mastodon/features/status/components/action_bar.js
    app/javascript/styles/about.scss
    app/javascript/styles/accounts.scss
    app/javascript/styles/admin.scss
    app/javascript/styles/basics.scss
    app/javascript/styles/boost.scss
    app/javascript/styles/compact_header.scss
    app/javascript/styles/components.scss
    app/javascript/styles/containers.scss
    app/javascript/styles/footer.scss
    app/javascript/styles/forms.scss
    app/javascript/styles/landing_strip.scss
    app/javascript/styles/reset.scss
    app/javascript/styles/stream_entries.scss
    app/javascript/styles/tables.scss
    app/javascript/styles/variables.scss
    app/views/admin/subscriptions/_subscription.html.haml
    app/views/layouts/application.html.haml
    app/views/layouts/error.html.haml
    app/views/manifests/show.json.rabl
    bin/webpack-dev-server
    config/initializers/httplog.rb
    public/500.html
    public/emoji/1f1e6-1f1e8.svg
    public/emoji/1f1ec-1f1f8.svg
    public/emoji/1f1f3-1f1ee.svg
    public/emoji/1f1fb-1f1ec.svg
    spec/fixtures/requests/idn.txt
    yarn.lock

* Add semicolon
2017-07-06 15:27:02 +02:00
app Fix embedded SVG fill attribute (#4086) 2017-07-06 15:27:02 +02:00
bin Fix webpack-dev-server on Windows (#4000) 2017-06-30 13:43:26 +02:00
config i18n: minor changes in Polish translation (#4087) 2017-07-06 15:25:27 +02:00
db Bind web UI access tokens to sessions (#3940) 2017-06-25 23:51:32 +02:00
docs
lib Bump version to 1.4.7 2017-06-28 17:44:17 +02:00
log
nanobox Add Support for Nanobox (#1709) 2017-05-23 16:54:44 +02:00
public Fix #3063 - Add dynamic app manifest (#3563) 2017-06-06 19:29:42 +02:00
spec Fix Nokogiri::HTML at FetchLinkCardService (#4072) 2017-07-05 14:54:21 +02:00
storybook Remove unused variables (#3906) 2017-06-23 16:05:04 +02:00
streaming Stop using Babel with streaming server (#3950) 2017-06-26 04:49:39 +02:00
vendor/assets
.babelrc Use Class and Property Decorators (#3730) 2017-06-23 19:36:54 +02:00
.buildpacks
.codeclimate.yml Enable CodeClimate SCSS Lint checks (#2886) 2017-05-07 20:47:31 +02:00
.dockerignore Ignore packs folder when COPY . /mastodon (#3522) 2017-06-02 18:09:28 +02:00
.editorconfig
.env.nanobox [nanobox] Adjustments for Nanobox development (#3295) 2017-05-29 17:59:18 +02:00
.env.production.sample added 'https://' to CDN_HOST variable example (#3446) 2017-05-30 18:39:28 +02:00
.env.test
.env.vagrant
.eslintignore
.eslintrc.yml Remove unused variables (#3906) 2017-06-23 16:05:04 +02:00
.foreman
.gitattributes Add .gitattributes file to avoid unwanted CRLF (#3954) 2017-06-26 13:15:24 +02:00
.gitignore Upgrade Webpacker to version 2.0 (#3729) 2017-06-18 02:57:09 +02:00
.haml-lint.yml
.nanoignore Add Support for Nanobox (#1709) 2017-05-23 16:54:44 +02:00
.nvmrc
.postcssrc.yml
.profile Add ffmpeg and dependent packages as well as LD_LIBRARY_PATHs (#3276) 2017-05-24 17:57:33 +02:00
.rspec
.rubocop.yml Improve RuboCop rules (compatibility to Code Climate) (#3636) 2017-06-08 13:24:28 +02:00
.ruby-version
.scss-lint.yml
.slugignore
.travis.yml Fix travis builds 2017-06-22 13:24:00 +02:00
Aptfile Add ffmpeg and dependent packages as well as LD_LIBRARY_PATHs (#3276) 2017-05-24 17:57:33 +02:00
CONTRIBUTING.md
Capfile
Dockerfile
Gemfile Explicitly require MIME::Types (#4083) 2017-07-05 23:58:03 +02:00
Gemfile.lock Explicitly require MIME::Types (#4083) 2017-07-05 23:58:03 +02:00
ISSUE_TEMPLATE.md
LICENSE
Procfile
Procfile.dev
README.md Fix broken screenshot 2017-06-07 17:53:47 +02:00
Rakefile Initial commit 2016-02-20 22:53:20 +01:00
Vagrantfile Use the stable RVM installer (#3901) 2017-06-22 23:28:52 +02:00
app.json
boxfile.yml [nanobox] Add python for node-gyp (#3491) 2017-06-01 17:33:57 +02:00
config.ru
docker-compose.yml
docker_entrypoint.sh Some Dockerfile improvements (#3182) 2017-05-20 20:01:05 +02:00
package.json Change webpack-dev-server repository (#4061) 2017-07-04 15:19:54 +02:00
scalingo.json
yarn.lock Change webpack-dev-server repository (#4061) 2017-07-04 15:19:54 +02:00

README.md

Mastodon

Build Status Code Climate

Mastodon is a free, open-source social network server. A decentralized solution to commercial platforms, it avoids the risks of a single company monopolizing your communication. Anyone can run Mastodon and participate in the social network seamlessly.

An alternative implementation of the GNU social project. Based on ActivityStreams, Webfinger, PubsubHubbub and Salmon.

Click on the screenshot to watch a demo of the UI:

Screenshot

The project focus is a clean REST API and a good user interface. Ruby on Rails is used for the back-end, while React.js and Redux are used for the dynamic front-end. A static front-end for public resources (profiles and statuses) is also provided.

If you would like, you can support the development of this project on Patreon. Alternatively, you can donate to this BTC address: 17j2g7vpgHhLuXhN4bueZFCvdxxieyRVWd

Resources

Features

  • Fully interoperable with GNU social and any OStatus platform Whatever implements Atom feeds, ActivityStreams, Salmon, PubSubHubbub and Webfinger is part of the network
  • Real-time timeline updates See the updates of people you're following appear in real-time in the UI via WebSockets
  • Federated thread resolving If someone you follow replies to a user unknown to the server, the server fetches the full thread so you can view it without leaving the UI
  • Media attachments like images and WebM Upload and view images and WebM videos attached to the updates
  • OAuth2 and a straightforward REST API Mastodon acts as an OAuth2 provider so 3rd party apps can use the API, which is RESTful and simple
  • Background processing for long-running tasks Mastodon tries to be as fast and responsive as possible, so all long-running tasks that can be delegated to background processing, are
  • Deployable via Docker You don't need to mess with dependencies and configuration if you want to try Mastodon, if you have Docker and Docker Compose the deployment is extremely easy

Development

Please follow the development guide from the documentation repository.

Deployment

There are guides in the documentation repository for deploying on various platforms.

Contributing

You can open issues for bugs you've found or features you think are missing. You can also submit pull requests to this repository. Here are the guidelines for code contributions

IRC channel: #mastodon on irc.freenode.net

Extra credits

  • The Emoji One pack has been used for the emojis
  • The error page image courtesy of Dopatwo

Mastodon error image