Matt Jankowski
e633b26f4f
Add allow_other_host in redirects which may go outside app ( #24252 )
2 years ago
Eugen Rochko
6cf57c6765
Refactor how Redis locks are created ( #18400 )
...
* Refactor how Redis locks are created
* Fix autorelease duration on account deletion lock
3 years ago
Eugen Rochko
3917353645
Fix single Redis connection being used across all threads ( #18135 )
...
* Fix single Redis connection being used across all Sidekiq threads
* Fix tests
3 years ago
Claire
12f8f39e25
Fix media proxy RedisLocks auto-releasing too fast ( #16291 )
...
Follow-up to #16276
4 years ago
Justin Tracey
c9e8e1739c
replace all instances of "ends_with?" with "end_with?" ( #15745 )
...
The "ends_with?" method is just a Rails alias of Ruby's "end_with?" method.
Using the latter makes the code less brittle.
4 years ago
Eugen Rochko
6e25574ce5
Fix media attachments enumeration ( #14254 )
...
* Fix media attachment enumeration
* Switch media_attachments id to snowflake ids
Co-authored-by: Thibaut Girka <thib@sitedethib.com>
4 years ago
Eugen Rochko
64aac30733
Add customizable thumbnails for audio and video attachments ( #14145 )
...
- Change audio files to not be stripped of metadata
- Automatically extract cover art from audio if it exists
- Add `thumbnail` parameter to `POST /api/v1/media`, `POST /api/v2/media` and `PUT /api/v1/media/:id`
- Add `icon` to represent it in attachments in ActivityPub
- Fix `preview_url` containing URL of missing missing image when there is no thumbnail instead of null
- Fix duration of audio not being displayed on public pages until the file is loaded
4 years ago
Eugen Rochko
de5305a3a5
Fix redirecting non-functional accounts on public pages ( #11978 )
...
Fix #11969
5 years ago
Eugen Rochko
16cdaa1110
Fix uncaught errors in media proxy controller ( #11811 )
5 years ago
Eugen Rochko
a8b0bb355d
Fix uncaught 422 and 500 errors ( #11590 )
5 years ago
Eugen Rochko
24552b5160
Add whitelist mode ( #11291 )
5 years ago
Eugen Rochko
707ddf7808
Change domain blocks to automatically support subdomains ( #11138 )
...
* Change domain blocks to automatically support subdomains
If a more authoritative domain is blocked (example.com), then the
same block will be applied to a subdomain (foo.example.com)
* Match subdomains of existing accounts when blocking/unblocking domains
* Improve code style
5 years ago
Eugen Rochko
8514ef723c
Fix login sometimes redirecting to paths that are not pages ( #11019 )
...
Fix #11016
6 years ago
Akihiko Odaki
55fd55714a
Raise Mastodon::RaceConditionError if Redis lock failed ( #7511 )
...
An explicit error allows user agents to know the error and Sidekiq to
retry.
7 years ago
Eugen Rochko
41e6c8b151
Fix incomplete account records being read ( #4998 )
...
* Fix incomplete account records being read
- Put account processing into redis lock
- Do not save until record is complete
* Fix spaces
7 years ago
Eugen Rochko
54edb4b853
When accessing uncached media attachment, redownload it ( #4955 )
...
* When accessing uncached media attachment, redownload it
* Prevent re-download of rejected media
7 years ago