Claire
31bd0da41f
Fix anonymous visitors getting a session cookie on first visit ( #24584 )
2 years ago
Matt Jankowski
cc5208f020
Add allow_other_host in redirects which may go outside app ( #24252 )
2 years ago
Eugen Rochko
f1707c6d50
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
553889bc7c
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
d0e2ae1769
Fix media proxy RedisLocks auto-releasing too fast ( #16291 )
...
Follow-up to #16276
4 years ago
Justin Tracey
cbcf083cb4
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
0edde9d6c8
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
a3ce01a102
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
561b0509c3
Fix redirecting non-functional accounts on public pages ( #11978 )
...
Fix #11969
5 years ago
Eugen Rochko
605a4e654a
Fix uncaught errors in media proxy controller ( #11811 )
5 years ago
Eugen Rochko
dde2c17e12
Fix uncaught 422 and 500 errors ( #11590 )
5 years ago
Eugen Rochko
825dc3ca22
Add whitelist mode ( #11291 )
5 years ago
Eugen Rochko
eac19f2300
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
75ef673216
Fix login sometimes redirecting to paths that are not pages ( #11019 )
...
Fix #11016
6 years ago
Akihiko Odaki
5dadb6896b
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
48377dfe46
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
26c797bf0d
When accessing uncached media attachment, redownload it ( #4955 )
...
* When accessing uncached media attachment, redownload it
* Prevent re-download of rejected media
7 years ago