Commit Graph

217 Commits (bf1bde5d6a8306284a0cce89eb8f492b8c9b7a67)

Author SHA1 Message Date
Immae b0f4fe456b Add ldap search filter (#8151) 6 years ago
Eugen Rochko 018a9e4e7f
Add post-deployment migration system (#8182)
Adopted from GitLab CE. Generate new migration with:

    rails g post_deployment_migration name_of_migration_here

By default they are run together with db:migrate. To not run them,
the env variable SKIP_POST_DEPLOYMENT_MIGRATIONS must be set

Code by Yorick Peterse <yorickpeterse@gmail.com>, see also:

83c8241160
6 years ago
ThibG 110b3f6335 Add some feedback to maintenance rake tasks (#8173) 6 years ago
Eugen Rochko bb71538bb5
Redesign public profiles and toots (#8068) 6 years ago
Eugen Rochko 0fb0037ca7
Resize images by area instead of fixed dimensions (#8083)
To improve the way super tall or super ride images are treated, the
numbers remain the same, 1280x1280 and 400x400, but if an image
is less in one dimension than the other, the other can become larger

Thanks to @WAHa_06x36@mastodon.social for the tip
6 years ago
Eugen Rochko 5a6645c922
Fix static GIFs being saved as empty files when using local storage (#8012)
Fix #7997
Fix #6237
6 years ago
Eugen Rochko 7ac5151b74
Bump version to 2.4.3 6 years ago
Eugen Rochko 89dc0c98ee
Bump version to 2.4.3rc3 6 years ago
Eugen Rochko 451e585b97
Bump version to 2.4.3rc2 6 years ago
Eugen Rochko cb36ab9a10
Bump version to 2.4.3rc1 6 years ago
Eugen Rochko d017f240f9
Bump version to 2.4.2 6 years ago
Eugen Rochko 86cce466b6
Bump version to 2.4.2rc3 6 years ago
Eugen Rochko a04dca36a3
Bump version to 2.4.2rc2 6 years ago
Eugen Rochko 3b8023f9f9
Bump version to 2.4.2rc1 6 years ago
Eugen Rochko 0979d4275a
Bump version to 2.4.1 6 years ago
Eugen Rochko 35ae960122
Bump version to 2.4.1rc4 6 years ago
Eugen Rochko 158cd7ee74
Bump version to 2.4.1rc3 6 years ago
Eugen Rochko fab65fb7e5
Bump version to 2.4.1rc2 6 years ago
Eugen Rochko c7405fda11
Fix missing column in select in mastodon:feeds:build task (#7720) 6 years ago
Eugen Rochko ad40bf5e0c
Speed up some rake tasks by moving execution to Sidekiq (#7678)
* Speed up some rake tasks by moving execution to Sidekiq

mastodon:media:remove_silenced
mastodon:media:remove_remote
mastodon:media:redownload_avatars
mastodon:feeds:build

* Fix code style issue
6 years ago
Eugen Rochko a29f196f95
Bump version to 2.4.1rc1 6 years ago
Eugen Rochko 7745a22ec7
Bump version to 2.4.0 6 years ago
Eugen Rochko 292c987522
Bump version to 2.4.0rc5 7 years ago
Eugen Rochko bcbb6aa46f
Bump version to 2.4.0rc4 7 years ago
MIYAGI Hikaru 919eef3098 User agent for WebFinger (#7531)
* User agent for WebFinger

* local_domain → web_domain

* 'http' is away accidentally...
7 years ago
Eugen Rochko 8756fd1e82
Bump version to 2.4.0rc3 7 years ago
Eugen Rochko d75b63e4fb
Bump version to 2.4.0rc2 7 years ago
Eugen Rochko 50ed1e83ac
Bump version to 2.4.0rc1 (#7283) 7 years ago
ThibG a24605961a Fixes/do not override timestamps (#7336)
* Revert "Fixes/do not override timestamps (#7331)"

This reverts commit 581a5c9d29.

* Document Snowflake ID corner-case a bit more

Snowflake IDs are used for two purposes: making object identifiers harder to
guess and ensuring they are in chronological order. For this reason, they
are based on the `created_at` attribute of the object.

Unfortunately, inserting items with older snowflakes IDs will break the
assumption of consumers of the paging APIs that new items will always have
a greater identifier than the last seen one.

* Add `override_timestamps` virtual attribute to not correlate snowflake ID with created_at
7 years ago
Eugen Rochko cb5b5cb5f7
Slightly reduce RAM usage (#7301)
* No need to re-require sidekiq plugins, they are required via Gemfile

* Add derailed_benchmarks tool, no need to require TTY gems in Gemfile

* Replace ruby-oembed with FetchOEmbedService

Reduce startup by 45382 allocated objects

* Remove preloaded JSON-LD in favour of caching HTTP responses

Reduce boot RAM by about 6 MiB

* Fix tests

* Fix test suite by stubbing out JSON-LD contexts
7 years ago
Eugen Rochko 63553c6b5c
Add support for separate Redis for cache (#7272)
* Add support for separate Redis for cache

CACHE_REDIS_URL to allow using a different Redis server for cache
purposes, with cache-specific configuration such as key eviction

* Fix code style issues
7 years ago
Alejandro Martinez Ruiz 06817b3c1f tasks/mastodon: fix prompt for Redis password (#7241) 7 years ago
David Baucum ca9192d9ba Ability to specify Redis passwd on mastodon:setup (#7222)
Closes #7221
7 years ago
Yamagishi Kazutoshi 084cf0babf Add extract_foreign_key_action to Mastodon::MigrationHelpers (#7195) 7 years ago
Eugen Rochko 36eac8ba90
Do not default SMTP verify mode to "peer", default to "none" (#6996) 7 years ago
Eugen Rochko 2a90da1837
Fix UniqueUsernameValidator comparison (#6926)
Comparison was downcasing only one side, therefore if previously
existing account had a non-lowercase spelling, it would be ignored
when checking for duplicates.

New rake task `mastodon:maintenance:find_duplicate_usernames` will
help find constraint violations that might have occured from the
presence of this bug.

Bump version to 2.3.3
7 years ago
Akihiko Odaki 54b273bf99 Close http connection in perform method of Request class (#6889)
HTTP connections must be explicitly closed in many cases, and letting
perform method close connections makes its callers less redundant and
prevent them from forgetting to close connections.
7 years ago
Eugen Rochko 6cc432bbc4
Bump version to 2.3.2 7 years ago
Eugen Rochko dafae9818d
Bump version to 2.3.2rc5 7 years ago
Eugen Rochko f64af6473f
Bump version to 2.3.2rc4 7 years ago
Eugen Rochko ac49c7932d
Add LDAP_TLS_NO_VERIFY option, don't require LDAP_ENABLED outside .env (#6845)
Fix #6816, fix #6790
7 years ago
Eugen Rochko 74c39fada0
Bump version to 2.3.2rc3 7 years ago
Eugen Rochko 092f1df9d0
Bump version to 2.3.2rc2 7 years ago
Eugen Rochko cdf8b92fea
Bump version to 2.3.2rc1 7 years ago
Akihiko Odaki 338bff8b93 Correct the reference to user's password in mastodon:add_user task (#6800) 7 years ago
Eugen Rochko 2ef1ce1182
Bump version to 2.3.1 7 years ago
Eugen Rochko 79d3a8553f
Bump version to 2.3.1rc3 7 years ago
Ushitora Anqou 051b649628 Detailed SMTP setup (#6759)
* add detailed SMTP settings setup in mastodon:setup

* add localhost SMTP settings setup in mastodon:setup

* SMTP settings setup should exit after successful delivery of test mail
7 years ago
艮 鮟鱇 f5f165a5eb set SAFETY_ASSURED=1 of db:setup in mastodon:setup (#6758) 7 years ago
Eugen Rochko f89ff65ec7
Bump version to 2.3.1rc2 7 years ago