Commit Graph

275 Commits (8e4fea77e311399e4bcfff729aa06fed4e82e57c)

Author SHA1 Message Date
Râu Cao 9aa31be8d3
Fix local account search on LDAP login being case-sensitive ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 88882fbbee
Move Rails/HABTM cop out of todo ()
Matt Jankowski 1e7d5d2957
Update `devise-two-factor` to version 5.0.0 ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 6fed108703
Use Rails `upsert` to generate update_count! query in Counters concern ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski caad1e2628
Add scope `Status.distributable_visibility` ()
Matt Jankowski 285f63c02e
Use composable query in `User.active` scope ()
Claire babbf6017d
Remove caching in `cache_collection` ()
Matt Jankowski c0fe8a9f13
Extract shared callback behaviour to `CustomFilterCache` concern ()
Claire 37ca59815c
Remove setting for unfollow confirmation modal, and make it unconditional ()
Claire d71d26a3c9
Reattribute notification-related records if possible when merging accounts ()
Matt Jankowski 77897cd24c
Use existing `SeveredRelationship.about_local_account` scope in more places ()
Claire 44bf7b8128
Add notifications of severed relationships ()
Matt Jankowski 62e266fbd6
Add `BrowserDetection` model concern ()
Matt Jankowski 838b0bdf2d
Remove unused `Account::Interactions#endorsed?` method ()
Matt Jankowski 0bc17a3d48
Use enum-generated `public_visibility` scope on Status ()
Matt Jankowski d4ed7e466c
Extract `by_domain_length` scope in `DomainNormalizable` concern ()
Jeong Arm 4a6ddbc9c0
Normalize idna domain before account unblock domain ()
Eugen Rochko 50b17f7e10
Add notification policies and notification requests ()
Matt Jankowski 8429d07454
Add `RankedTrend` concern for trends classes ()
Matt Jankowski 245064bb98
Move "everyone" role and "instance actor" account magic number IDs to constants ()
Claire b31af34c97
Merge pull request from GHSA-vm39-j3vx-pch3
* Prevent different identities from a same SSO provider from accessing a same account

* Lock auth provider changes behind `ALLOW_UNSAFE_AUTH_PROVIDER_REATTACH=true`

* Rename methods to avoid confusion between OAuth and OmniAuth
Emelia Smith e8b66a0525
Ignore legacy moderator and admin columns on User model ()
Matt Jankowski 86500e3312
Extract scenic view model common methods to concern ()
Matt Jankowski 89c9a4502d
Fix `Rails/WhereExists` cop in account/interactions concern ()
Claire 98b5f85f10
Rename and refactor `User#confirm!` to `User#mark_email_as_confirmed!` ()
Michael Stanclift 195b89d336
Fix .opus file uploads being misidentified by Paperclip ()
Matt Jankowski 128c5b7db3
Fix `Performance/StringIdentifierArgument` cop ()
Eugen Rochko b5ac61b2c5
Change algorithm of follow recommendations ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Claire 7d9b209fe8
Fix call to inefficient `delete_matched` cache method in domain blocks ()
Matt Jankowski 1820bad646
Fix `Performance/StringIdentifierArgument` cop ()
Claire dcc24db793
Fix N+1s because of association preloaders not actually getting called ()
Matt Jankowski 5631f139c1
Fix `Lint/SymbolConversion` cop ()
Matt Jankowski f70f39dd04
Add explicit `dependent: nil` to associations ()
Matt Jankowski 440b80b2e7
Model concerns organization into module namespaces ()
Claire 3a24754229
Change GIF max matrix size error to explicitly mention GIF files ()
Matt Jankowski d2aacea8da
Reduce `.times` usage in AccountSearch spec, use constant for default limit ()
Eugen Rochko 0d14fcebae
Change link previews to keep original URL from the status ()
Matt Jankowski e93a75f1a1
Rails 7.1 update ()
Essem bd810391d6
Properly remove tIME chunk from PNG uploads ()
Claire cab4cbfa5c
Fix “Scoped order is ignored, it's forced to be batch order.” warnings ()
Claire 9e77ab7db2
Change private statuses index to index without crutches ()
Claire 0cce7fb617
Fix incorrect call to `PublicStatusesIndex.import` ()
Eugen Rochko 5694e24bbf
Fix unnecessary condition causing seqscan when indexing ()
jsgoldstein 30c191aaa0
Add new public status index ()
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Eugen Rochko 4d01d1a1ee
Remove 16:9 cropping from web UI ()
Matt Jankowski ce43ed144c
Rails 7.0 update ()
Claire 94fbac77e7
Fix processing of media files with unusual names ()
Claire dc8f1fbd97
Merge pull request from GHSA-9928-3cp5-93fm
* Fix attachments getting processed despite failing content-type validation

* Add a restrictive ImageMagick security policy tailored for Mastodon

* Fix misdetection of MP3 files with large cover art

* Reject unprocessable audio/video files instead of keeping them unchanged
Eugen Rochko ba06a2f104
Revert "Rails 7 update" ()
Matt Jankowski 50c2a03695
Rails 7 update ()