Add an explanation how to customize link to source code (#423)

This is to document the merged pull request:
https://github.com/tootsuite/mastodon/pull/4643
This commit is contained in:
Daigo 3 Dango 2017-10-17 12:25:51 -10:00 committed by Eugen Rochko
parent 0ee6afbaad
commit 6a89b3cbe2
1 changed files with 16 additions and 0 deletions

View File

@ -35,3 +35,19 @@ $valid-value-color: $color7;
$base-shadow-color: $color8;
$base-overlay-background: $color8;
```
## Link to source code
Mastodon is distributed under the terms of AGPL. The source code must be offered to its user. To easily achieve this on your instance, an initializer like below can be added, as a file like `config/initializer/source.rb`, to customize the links at the bottom of the `/about` and `/about/more` pages:
```ruby
# frozen_string_literal: true
module Mastodon
module Version
module_function
def source_base_url
'https://github.com/<your-github-account>/mastodon'
end
end
end
```