Mastodon (Freak U edition). Fork of https://github.com/glitch-soc/mastodon
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Claire 9a19227f17
Fix some RedisLocks auto-releasing too fast (#16276)
* Fix Delete and Create-related locks expiring too fast

Fixes #16238

By default, RedisLock expires after 10 seconds, which may not be enough to
process statuses, especially when those have attached media files.

This commit extends those 10 seconds to 15 minutes, which should be plenty
enough to handle any status, while being short enough to not waste many
sidekiq job retries in the exceedingly rare case in which a sidekiq process
would crash when processing a `Create` or `Delete`.

* Fix other RedisLock autorelease durations

Fixes #15645

- things that only perform a few simple database queries (e.g. finding and
  saving a record) have been left unchanged, so they'll still use the default
  10s duration
- things that perform significantly more complex database queries have been
  changed to a 5 minutes timeout
- things that perform multiple HTTP queries have been changed to a 15 minutes
  timeout
2021-05-19 23:52:08 +02:00
.circleci Add Ruby 3.0 support (#16046) 2021-05-06 14:22:54 +02:00
.github
app Fix some RedisLocks auto-releasing too fast (#16276) 2021-05-19 23:52:08 +02:00
bin
chart
config Fix host check on healthcheck path not being disabled (#16270) 2021-05-17 22:36:08 +02:00
db Remove PubSubHubbub-related columns from accounts table (#16170) 2021-05-07 19:32:58 +02:00
dist
lib Bump version to 3.4.0 (#16239) 2021-05-16 23:55:07 +02:00
log
nanobox
public
spec Fix blocking someone not clearing up list feeds (#16205) 2021-05-10 17:31:55 +02:00
streaming
vendor
.buildpacks
.codeclimate.yml
.deepsource.toml
.dockerignore
.editorconfig
.env.nanobox
.env.production.sample
.env.test
.env.vagrant
.eslintignore
.eslintrc.js
.foreman
.gitattributes
.gitignore
.haml-lint.yml
.nanoignore
.nvmrc
.profile
.rspec
.rubocop.yml
.ruby-version Revert default Ruby version to 2.7.2 (#16154) 2021-05-04 23:06:19 +02:00
.sass-lint.yml
.slugignore
.yarnclean
AUTHORS.md Bump version to 3.4.0 (#16239) 2021-05-16 23:55:07 +02:00
Aptfile
CHANGELOG.md Bump version to 3.4.0 (#16239) 2021-05-16 23:55:07 +02:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md Add pull request title recommendations to CONTRIBUTING.md (#16247) 2021-05-16 23:09:21 +02:00
Capfile
Dockerfile Revert default Ruby version to 2.7.2 (#16154) 2021-05-04 23:06:19 +02:00
Gemfile Bump rubocop from 1.13.0 to 1.14.0 (#16192) 2021-05-10 17:41:37 +02:00
Gemfile.lock Bump nokogiri from 1.11.3 to 1.11.4 (#16252) 2021-05-17 22:36:44 +02:00
LICENSE
Procfile
Procfile.dev
README.md Change Node.js requirement in README (#16246) 2021-05-16 23:09:12 +02:00
Rakefile
SECURITY.md Fix security policy (#16248) 2021-05-16 23:50:16 +02:00
Vagrantfile updated node version in Vagrantfile (#16230) 2021-05-12 23:19:31 +02:00
app.json
babel.config.js Remove dependency for @babel/plugin-proposal-class-properties (#16155) 2021-05-04 23:13:04 +02:00
boxfile.yml
config.ru
crowdin.yml
docker-compose.yml
ide-helper.js
package.json Bump glob from 7.1.6 to 7.1.7 (#16204) 2021-05-10 17:37:23 +02:00
postcss.config.js
priv-config
scalingo.json
yarn.lock Bump glob from 7.1.6 to 7.1.7 (#16204) 2021-05-10 17:37:23 +02:00

README.md

Mastodon

GitHub release Build Status Code Climate Crowdin Docker Pulls

Mastodon is a free, open-source social network server based on ActivityPub where users can follow friends and discover new ones. On Mastodon, users can publish anything they want: links, pictures, text, video. All Mastodon servers are interoperable as a federated network (users on one server can seamlessly communicate with users from another one, including non-Mastodon software that implements ActivityPub)!

Click below to learn more in a video:

Screenshot

Navigation

Features

No vendor lock-in: Fully interoperable with any conforming platform

It doesn't have to be Mastodon, whatever implements ActivityPub is part of the social network! Learn more

Real-time, chronological timeline updates

See the updates of people you're following appear in real-time in the UI via WebSockets. There's a firehose view as well!

Media attachments like images and short videos

Upload and view images and WebM/MP4 videos attached to the updates. Videos with no audio track are treated like GIFs; normal videos are looped - like vines!

Safety and moderation tools

Private posts, locked accounts, phrase filtering, muting, blocking and all sorts of other features, along with a reporting and moderation system. Learn more

OAuth2 and a straightforward REST API

Mastodon acts as an OAuth2 provider so 3rd party apps can use the REST and Streaming APIs, resulting in a rich app ecosystem with a lot of choices!

Deployment

Tech stack:

  • Ruby on Rails powers the REST API and other web pages
  • React.js and Redux are used for the dynamic parts of the interface
  • Node.js powers the streaming API

Requirements:

  • PostgreSQL 9.5+
  • Redis 4+
  • Ruby 2.5+
  • Node.js 12+

The repository includes deployment configurations for Docker and docker-compose, but also a few specific platforms like Heroku, Scalingo, and Nanobox. The stand-alone installation guide is available in the documentation.

A Vagrant configuration is included for development purposes.

Contributing

Mastodon is free, open-source software licensed under AGPLv3.

You can open issues for bugs you've found or features you think are missing. You can also submit pull requests to this repository, or submit translations using Crowdin. To get started, take a look at CONTRIBUTING.md. If your contributions are accepted into Mastodon, you can request to be paid through our OpenCollective.

IRC channel: #mastodon on irc.freenode.net

License

Copyright (C) 2016-2021 Eugen Rochko & other Mastodon contributors (see AUTHORS.md)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.