mastodon/app/models
Matt Jankowski 11e0049b08
Use enum-generated scopes/queries for `BulkImport` ()
..
account Autofix Rubocop remaining Layout rules ()
account_suggestions Revert friends-of-friends follow recommendation query to using a CTE ()
admin Add scope `Status.distributable_visibility` ()
concerns Use Rails `upsert` to generate update_count! query in Counters concern ()
form Ensure case-insensitive fields are converted to lowercase in user imports ()
trends Add `not_allowed` scope for `PreviewCardTrend` ()
user_settings Fix `Lint/SymbolConversion` cop ()
web Add explicit `dependent: nil` to associations ()
account.rb Use existing `DEFAULT_FIELDS_SIZE` constant to limit `Account#fields` ()
account_alias.rb Use Rails 7.1 `normalizes` feature ()
account_conversation.rb Fix /api/v1/conversations sometimes returning empty accounts ()
account_deletion_request.rb
account_domain_block.rb Change algorithm of follow recommendations ()
account_filter.rb Replace unused `by_recent_sign_in` scope ()
account_migration.rb Use Rails 7.1 `normalizes` feature ()
account_moderation_note.rb Autofix Rubocop remaining Layout rules ()
account_note.rb Autofix Rubocop remaining Layout rules ()
account_pin.rb Autofix Rubocop remaining Layout rules ()
account_relationship_severance_event.rb Change `AccountRelationshipSeveranceEvent` model to store lost followers and following counts separately ()
account_stat.rb Add `AccountStat.by_recent_status`, use in `Account` ()
account_statuses_cleanup_policy.rb Fix Performance/MapCompact cop ()
account_suggestions.rb Change `source` attribute of `Suggestion` entity in `/api/v2/suggestions` back to a string ()
account_summary.rb Extract scenic view model common methods to concern ()
account_warning.rb Pull out constant from `AccountWarning.recent` scope ()
account_warning_preset.rb
admin.rb
announcement.rb Change `/api/v1/announcements` to return regular `Status` entities ()
announcement_filter.rb Fix error when passing unknown filter param in REST API ()
announcement_mute.rb
announcement_reaction.rb Fix Rails/ActiveRecordCallbacksOrder cop ()
appeal.rb Group common `class_name` options in associations ()
application_record.rb Fix ActiveRecord using two connection pools when no replica is defined ()
backup.rb Fix user archive takeout when using OpenStack Swift or S3 providers with no ACL support ()
block.rb Change algorithm of follow recommendations ()
bookmark.rb Autofix Rubocop remaining Layout rules ()
bulk_import.rb Use enum-generated scopes/queries for `BulkImport` ()
bulk_import_row.rb Rewrite import feature ()
canonical_email_block.rb Allow unblocking email addresses from any matching account ()
content_retention_policy.rb
context.rb
conversation.rb Add explicit `dependent: nil` to associations ()
conversation_mute.rb Autofix Rubocop remaining Layout rules ()
custom_emoji.rb Use Arel `matches` method in CustomEmoji search ()
custom_emoji_category.rb Add explicit `dependent: nil` to associations ()
custom_emoji_filter.rb Use Arel `nulls_first` method in ordering CustomEmojiFilter scope ()
custom_filter.rb Add `CustomFilter.unexpired` scope ()
custom_filter_keyword.rb Extract shared callback behaviour to `CustomFilterCache` concern ()
custom_filter_status.rb Extract shared callback behaviour to `CustomFilterCache` concern ()
device.rb Autofix Rubocop remaining Layout rules ()
domain_allow.rb Remove unused `matches_domain` scopes on Account, DomainAllow, DomainBlock ()
domain_block.rb Extract `by_domain_length` scope in `DomainNormalizable` concern ()
email_domain_block.rb Extract `by_domain_length` scope in `DomainNormalizable` concern ()
encrypted_message.rb Autofix Rubocop remaining Layout rules ()
export.rb
extended_description.rb
favourite.rb Autofix Rubocop remaining Layout rules ()
featured_tag.rb Add scope `Status.distributable_visibility` ()
feed.rb Remove caching in `cache_collection` ()
follow.rb Change algorithm of follow recommendations ()
follow_recommendation.rb Extract scenic view model common methods to concern ()
follow_recommendation_filter.rb Change algorithm of follow recommendations ()
follow_recommendation_mute.rb Change algorithm of follow recommendations ()
follow_recommendation_suppression.rb Change algorithm of follow recommendations ()
follow_request.rb Disable `Rails/SkipsModelValidations` cop ()
generated_annual_report.rb Add annual reports for accounts ()
home_feed.rb
identity.rb Merge pull request from GHSA-vm39-j3vx-pch3
import.rb Update enum syntax to use the new Rails 7.0 style ()
instance.rb Extract scenic view model common methods to concern ()
instance_filter.rb Fix error when passing unknown filter param in REST API ()
invite.rb Add explicit `dependent: nil` to associations ()
invite_filter.rb Fix error when passing unknown filter param in REST API ()
ip_block.rb Use enum-generated scope for `IpBlock` in CLI ()
list.rb Update enum syntax to use the new Rails 7.0 style ()
list_account.rb Fix various edge cases with local moves ()
list_feed.rb
login_activity.rb Add `BrowserDetection` model concern ()
marker.rb
media_attachment.rb Update enum syntax to use the new Rails 7.0 style ()
mention.rb Autofix Rubocop remaining Layout rules ()
message_franking.rb
mute.rb Change algorithm of follow recommendations ()
notification.rb Fix issue with severed relationships notifications ()
notification_permission.rb Add notification policies and notification requests ()
notification_policy.rb Add notification policies and notification requests ()
notification_request.rb Fix error when attempting to delete posts that triggered a notification request ()
one_time_key.rb Autofix Rubocop remaining Layout rules ()
poll.rb Fix `Rails/WhereExists` cop in app/models ()
poll_vote.rb Fix single-record invalid condition on PollVote ()
preview_card.rb Update enum syntax to use the new Rails 7.0 style ()
preview_card_provider.rb Extract `by_domain_length` scope in `DomainNormalizable` concern ()
preview_card_trend.rb Add `not_allowed` scope for `PreviewCardTrend` ()
preview_cards_status.rb Change algorithm of follow recommendations ()
privacy_policy.rb Move privacy policy into markdown file ()
public_feed.rb Remove caching in `cache_collection` ()
relationship_filter.rb Add `AccountStat.by_recent_status`, use in `Account` ()
relationship_severance_event.rb Update `enum` away from deprecated ()
relay.rb Update enum syntax to use the new Rails 7.0 style ()
remote_follow.rb Autofix Rubocop Style/RedundantBegin ()
report.rb Update enum syntax to use the new Rails 7.0 style ()
report_filter.rb Fix deprecation warning about `rewhere: true` being default behavior (Rails 7.1 prep) ()
report_note.rb Autofix Rubocop remaining Layout rules ()
rule.rb Add hints for rules ()
scheduled_status.rb
search.rb
session_activation.rb Add `BrowserDetection` model concern ()
setting.rb Clean up `Setting` model and remove dead code ()
severed_relationship.rb Use existing `SeveredRelationship.about_local_account` scope in more places ()
site_upload.rb Properly remove tIME chunk from PNG uploads ()
software_update.rb Update enum syntax to use the new Rails 7.0 style ()
status.rb Add scope `Status.distributable_visibility` ()
status_edit.rb Remove `default_scope` from `StatusEdit` class ()
status_pin.rb Autofix Rubocop remaining Layout rules ()
status_stat.rb Fix obsolete cache key in status cache invalidation logic ()
status_trend.rb Add `RankedTrend` concern for trends classes ()
system_key.rb Autofix Rubocop Lint/AmbiguousOperatorPrecedence ()
tag.rb Add `not_featured_by` scope to Tag ()
tag_feed.rb Remove caching in `cache_collection` ()
tag_follow.rb
tombstone.rb
translation.rb Translate CW, poll options and media descriptions ()
trends.rb Admin mailer parameterization ()
unavailable_domain.rb Autofix Rubocop remaining Layout rules ()
user.rb Use composable query in `User.active` scope ()
user_invite_request.rb
user_ip.rb Add `by_latest_used` scope, move admin area recent IPs to partial ()
user_role.rb Move `nobody` position in `UserRole` magic number to constant ()
user_settings.rb Remove setting for unfollow confirmation modal, and make it unconditional ()
web.rb
webauthn_credential.rb Autofix Rubocop remaining Layout rules ()
webhook.rb Use `normalizes` to prepare `Webhook#events` value ()