- Mar 19, 2021
-
-
Claire authored
* Use ActiveRecord::Result#to_ary instead of deprecated to_hash They do the same thing, and to_hash has been removed from Rails 6.1 * Explicitly name polymorphic indexes to workaround a bug in Rails 6.1 cf. https://github.com/rails/rails/issues/41693 * Fix incorrect usage of “foreign_key” in migration script * Use `ActiveModel::Errors#delete` instead of deprecated clear method * Fix link headers tests on Rails 6.1 Rails 6.1 adds values to the Link header by default, thus it is not a LinkHeader object anymore. Fix the test to parse the Link header instead of assuming it is a LinkHeader.
-
Claire authored
Fixes #15133
-
Claire authored
* Prepare Mastodon for zeitwerk autoloader (Rails 6) Add inflections and rename/move a few classes. In particular, app/lib/exceptions.rb and app/lib/sanitize_config.rb were manually loaded while still in autoload paths. * Add inflection for Url → URL
-
- Mar 17, 2021
-
-
Claire authored
* Fix cache_collection crashing when given an empty collection * Add tests
-
Claire authored
* Fix misuse of foreign_type * Fix use of removed "add_template_helper" * Use response.media_type instead of response.content_type in tests * Fix CSV export controller test on Rails 6 Rails 6 sets a "filename*" field in the Content-Disposition header to explicitly encode the filename as UTF-8. This changes checks the first part of the Content-Disposition header so it matches in both Rails 5 and Rails 6. * Fix emoji formatting with Rails 6 * Make emoji output more idiomatic and robust * Switch from redis-rails gem to built-in Rails redis cache storage
-
- Mar 15, 2021
-
-
Eugen Rochko authored
Remove locks from scheduled jobs
-
Filipe Rodrigues authored
The exports page showed a different "CSV" capitalisation in the "Bookmarks" row ("Csv") compared to the other rows ("CSV"). This was due to a referece to a translation string that does not exist, `bookmarks.csv`, defaulting to the key's last segment in title case. This issue was introduced in commit dcd86204 (PR #14956). (h/t @meqif for helping with figuring out the bug)
-
- Mar 12, 2021
- Mar 07, 2021
-
-
Claire authored
-
- Mar 03, 2021
-
-
Claire authored
* Add tests * Fix URL scanning in note length validator and preview card fetching
-
- Mar 02, 2021
-
-
Claire authored
* Update twitter-text from 1.14 to 3.1.0 * Disable emoji parsing * Properly depend on twitter-text for url detection * Fix some URLs being wrongly detected client-side * Add test for server-side validation of non-autolinkable URLs * Fix server-side status length counting
-
- Mar 01, 2021
-
-
Claire authored
-
Eugen Rochko authored
Only available to the application the user originally signed-up with
-
Eugen Rochko authored
-
- Feb 28, 2021
-
-
Claire authored
Fixes #14910
-
- Feb 26, 2021
-
-
Claire authored
* Fix crash on receiving requests with missing Digest header Return an error pointing out that Digest is missing, instead of crashing. Fixes #15743 * Fix from review feedback
-
- Feb 24, 2021
- Feb 22, 2021
- Feb 21, 2021
-
-
Eugen Rochko authored
-
- Feb 19, 2021
-
-
Justin Tracey authored
The "ends_with?" method is just a Rails alias of Ruby's "end_with?" method. Using the latter makes the code less brittle.
-
- Feb 16, 2021
-
-
Eugen Rochko authored
-
- Feb 12, 2021
-
-
Eugen Rochko authored
-
Eugen Rochko authored
-
- Feb 11, 2021
-
-
kaias1jp authored
* Fixed picture in picture compatibility error in WebUI when status is deleted * Revert "Fixed picture in picture compatibility error in WebUI when status is deleted" This reverts commit f003b7d9d88688e9504f7dfae1545d7522fcfd98. * Close the modal display of the image when status is deleted * Fixed the case statement before the default statement * Removed unnecessary parts
-
Takeshi Umeda authored
-
Cecylia Bocovich authored
* Enable secure cookie flag for https only * Disable force_ssl for .onion hosts only Co-authored-by:
Aiden McClelland <me@drbonez.dev>
-
Jeong Arm authored
* Use custom mascot on static share page * Use full_asset_url
-
Claire authored
* Fix URI of repeat follow requests not being recorded In case we receive a “repeat” or “duplicate” follow request, we automatically fast-forward the accept with the latest received Activity `id`, but we don't record it. In general, a “repeat” or “duplicate” follow request may happen if for some reason (e.g. inconsistent handling of Block or Undo Accept activities, an instance being brought back up from the dead, etc.) the local instance thought the remote actor were following them while the remote actor thought otherwise. In those cases, the remote instance does not know about the older Follow activity `id`, so keeping that record serves no purpose, but knowing the most recent one is useful if the remote implementation at some point refers to it by `id` without inlining it. * Add tests
-
Mélanie Chauvel authored
* Slightly reorder three dots menu on toots to make it more intuitive - Make “Pin to profile” always appear at the same place - Add separator to group “Bookmark” and “Pin to profile” - Fix separator being the first item in some cases * Fix missing semicolon and keep status_action_bar.js and action_bar.js in sync
-
- Feb 10, 2021
-
-
Claire authored
* Various dropdown code quality fixes * Prepare support for privacy selection in boost modal * Add dropdown for boost privacy in boost confirmation modal
-
- Feb 09, 2021
-
-
Claire authored
An uncommon but somewhat difficult to digagnose issue is dealing with improperly-seeded databases. In such cases, instance-signed fetches will fail with a ActiveRecord::RecordNotFound error, usually caught and handled as generic 404, leading people to think the remote resource itself has not been found, while it's the local instance actor that does not exist. This commit changes the code so that failure to find the instance actor automatically creates a new one, so that improperly-seeded databases do not cause any issue.
-
Eugen Rochko authored
* Change max. image size to 1920x1080px * Change it in web UI too
-
- Feb 02, 2021
-
-
ThibG authored
* Atomically check for processing lock in Move handler * Prevent race condition when creating account migrations Fixes #15595 * Add tests Co-authored-by:
Claire <claire.github-309c@sitedethib.com>
-
- Jan 31, 2021
-
-
ThibG authored
Co-authored-by:
Claire <claire.github-309c@sitedethib.com>
-
abcang authored
* Improved performance of notification preloading * Remove Cacheable from Notification * Fix test
-
abcang authored
-
- Jan 28, 2021
-
-
abcang authored
-