You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec/models
Claire 84ceebe1c4
Fix media attachment size validation not correctly accounting for file type (#16819)
* Fix media attachment size validation not correctly accounting for file type

Fixes a regression introduced in #16724 caused by the fact that kt-paperclip
now correctly runs validations before processing, meaning that file size
verification could not rely on our before_post_processing hook.

Moved the `before_post_processing` hooks to `before_validate` to make sure
the media attachment type is set correctly before the file gets validated.

* Add tests
3 years ago
..
admin Add account sensitized (#14361) 4 years ago
concerns Fix followers synchronization mechanism not working when URI has empty path (#16510) 3 years ago
form
web Add `policy` param to `POST /api/v1/push/subscriptions` (#16040) 4 years ago
account_alias_spec.rb
account_conversation_spec.rb
account_deletion_request_spec.rb Change account suspensions to be reversible by default (#14726) 4 years ago
account_domain_block_spec.rb
account_filter_spec.rb Fix admins being able to suspend their instance actor (#14567) 4 years ago
account_migration_spec.rb
account_moderation_note_spec.rb
account_spec.rb Remove subscription_expires_at leftover from OStatus (#15857) 4 years ago
account_statuses_cleanup_policy_spec.rb Add feature to automatically delete old toots (#16529) 3 years ago
announcement_mute_spec.rb
announcement_reaction_spec.rb
announcement_spec.rb
backup_spec.rb
block_spec.rb
canonical_email_block_spec.rb Add canonical e-mail blocks for suspended accounts (#16049) 4 years ago
conversation_mute_spec.rb
conversation_spec.rb
custom_emoji_category_spec.rb
custom_emoji_filter_spec.rb
custom_emoji_spec.rb
custom_filter_spec.rb
device_spec.rb Add E2EE API (#13820) 5 years ago
domain_allow_spec.rb
domain_block_spec.rb
email_domain_block_spec.rb
encrypted_message_spec.rb Add E2EE API (#13820) 5 years ago
export_spec.rb
favourite_spec.rb
featured_tag_spec.rb
follow_recommendation_suppression_spec.rb Add cold-start follow recommendations (#15945) 4 years ago
follow_request_spec.rb Fix edge case where accepted follow cannot be processed because of follow limit (#16098) 4 years ago
follow_spec.rb Fix follow limit preventing re-following of a moved account (#14207) 4 years ago
home_feed_spec.rb
identity_spec.rb
import_spec.rb Fix follow limit preventing re-following of a moved account (#14207) 4 years ago
invite_spec.rb Change account suspensions to be reversible by default (#14726) 4 years ago
ip_block_spec.rb Add IP-based rules (#14963) 4 years ago
list_account_spec.rb
list_spec.rb
login_activity_spec.rb Add authentication history (#16408) 4 years ago
marker_spec.rb
media_attachment_spec.rb Fix media attachment size validation not correctly accounting for file type (#16819) 3 years ago
mention_spec.rb
mute_spec.rb
notification_spec.rb Improved performance of notification preloading (#15640) 4 years ago
one_time_key_spec.rb Add E2EE API (#13820) 5 years ago
poll_spec.rb
poll_vote_spec.rb
preview_card_spec.rb
public_feed_spec.rb Refactor how public and tag timelines are queried (#14728) 4 years ago
relationship_filter_spec.rb
relay_spec.rb
remote_follow_spec.rb
report_filter_spec.rb
report_spec.rb
rule_spec.rb Add server rules (#15769) 4 years ago
scheduled_status_spec.rb
session_activation_spec.rb Add Ruby 3.0 support (#16046) 4 years ago
setting_spec.rb Update Mastodon to Rails 6.1 (#15910) 4 years ago
site_upload_spec.rb
status_pin_spec.rb
status_spec.rb Refactor how public and tag timelines are queried (#14728) 4 years ago
status_stat_spec.rb
system_key_spec.rb Add E2EE API (#13820) 5 years ago
tag_feed_spec.rb Fix typo in tag_feed_spec.rb (#16466) 4 years ago
tag_spec.rb Improve tag search query (#16104) 4 years ago
trending_tags_spec.rb Change trending hashtags to be affected be reblogs (#16164) 4 years ago
unavailable_domain_spec.rb
user_invite_request_spec.rb
user_spec.rb Add ability to skip sign-in token authentication for specific users (#16427) 4 years ago
webauthn_credentials_spec.rb Fix validates :sign_count of WebauthnCredential (#14806) 4 years ago