mastodon/app/models
Renato "Lond" Cerqueira 9aba44ea79 Rescue when there's no extension in the remotable (#6358)
* Rescue when there's no extension in the remotable
Sometimes the remotable is pointing to a directory with no file
extension. Maybe it should not be expecting to identify based on
extensions to begin with, but since it's the case, it should be ready
for it.

* Fix codeclimate issue

* Check if filename is nil instead of rescueing exception
Suggestion made in the PR

* Avoid concatenation issue if filename is nil
If filename is nil, extname was undefined

* Invert condition
Address PR comments
2018-03-08 02:25:10 +01:00
..
admin
concerns
form
web
account.rb
account_domain_block.rb
account_filter.rb Clean up admin UI for accounts (#6004) 2017-12-13 12:15:10 +01:00
account_moderation_note.rb
admin.rb
application_record.rb
backup.rb
block.rb
context.rb
conversation.rb
conversation_mute.rb
custom_emoji.rb
custom_emoji_filter.rb
domain_block.rb
email_domain_block.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
export.rb
favourite.rb
feed.rb
follow.rb
follow_request.rb
home_feed.rb
identity.rb
import.rb Ensure the app does not even start if OTP_SECRET is not set (#6557) 2018-02-26 01:31:44 +01:00
instance.rb
instance_filter.rb
invite.rb
invite_filter.rb Add invite filter (#5862) 2017-12-01 16:40:02 +01:00
list.rb
list_account.rb
list_feed.rb
media_attachment.rb
mention.rb
mute.rb
notification.rb
preview_card.rb
remote_follow.rb
remote_profile.rb
report.rb
report_filter.rb
search.rb
session_activation.rb
setting.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
site_upload.rb
status.rb
status_pin.rb
stream_entry.rb
subscription.rb
tag.rb
user.rb
web.rb