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/app/models
unarist c8580eb806 Use file extensions in addition to MIME types for file picker (#5029)
Currently we're using a list of MIME types for `accept` attribute on `input[type="file"]` for filter options of file picker, and actual file extensions will be infered by browsers. However, infered extensions may not include our expected items. For example, "image/jpeg" seems to be infered to
only ".jfif" extension in Firefox.

To ensure common file extensions are in the list, this PR adds file extensions in addition to MIME types. Also having items in both format is encouraged by HTML5 spec.

https://www.w3.org/TR/html5/forms.html#file-upload-state-(type=file)
8 years ago
..
concerns Fix #4908 - Do not keep remote file names, generate random (#4934) 8 years ago
form Default follows for new users (#4871) 8 years ago
web Fix WebPush (regression from #4524) (#4778) 8 years ago
account.rb Add instance search feature (#4925) 8 years ago
account_domain_block.rb Add buttons to block and unblock domain (#3127) 8 years ago
account_filter.rb Add coverage for ReportFilter and AccountFilter (#3236) 8 years ago
application_record.rb Fix rubocop issues, introduce usage of frozen literal to improve performance 8 years ago
block.rb annotate models (#2697) 8 years ago
context.rb Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl (#4090) 8 years ago
conversation.rb Conditional validations no longer accept strings for if/unless (#3124) 8 years ago
conversation_mute.rb Feature conversations muting (#3017) 8 years ago
custom_emoji.rb Custom emoji (#4988) 8 years ago
domain_block.rb Allow domain blocks that only reject media without silencing or suspending (#4325) 8 years ago
export.rb Settings export refactor (#1646) 8 years ago
favourite.rb annotate models (#2697) 8 years ago
feed.rb Remove sort in Feed (#4050) 8 years ago
follow.rb Introduce recent to Follow (#3247) 8 years ago
follow_request.rb annotate models (#2697) 8 years ago
import.rb Validate data of Imports (#4782) 8 years ago
instance.rb Add Instance class to list admin records (#3443) 8 years ago
instance_filter.rb Add instance search feature (#4925) 8 years ago
media_attachment.rb Use file extensions in addition to MIME types for file picker (#5029) 8 years ago
mention.rb Misc tidying and clean ups (#3445) 8 years ago
mute.rb annotate models (#2697) 8 years ago
notification.rb Update Rails to version 5.1.1 (#3121) 8 years ago
preview_card.rb Make PreviewCard records reuseable between statuses (#4642) 8 years ago
remote_follow.rb rescue HTTP::ConnectionError in RemoteFollowController#create (#4726) 8 years ago
remote_profile.rb Introduce OStatus::TagManager (#5008) 8 years ago
report.rb Feat add validation for report comment: characters under 1000 valid (#4833) 8 years ago
report_filter.rb Admin reports with accounts (#2092) 8 years ago
search.rb Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl (#4090) 8 years ago
session_activation.rb Refactor Web::PushSubscription, remove welcome message (#4524) 8 years ago
setting.rb Improve RuboCop rules (compatibility to Code Climate) (#3636) 8 years ago
site_upload.rb Uploads for admin site settings (#4913) 8 years ago
status.rb Custom emoji (#4988) 8 years ago
status_pin.rb Allow multiple pinned statuses to be shown and make them be ordered b… (#4690) 8 years ago
stream_entry.rb Cover AccountsController more in spec (#3229) 8 years ago
subscription.rb Periodically remove expired PuSH subscribers (#4654) 8 years ago
tag.rb add validation to tag name (#4194) 8 years ago
user.rb Add support for multiple themes (#4959) 8 years ago
web.rb Add extended about page stub 8 years ago