Skip to content

Commit

Permalink
Fix downloading remote media files when server returns empty filename (
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Sep 27, 2020
1 parent d602900 commit 5bbc9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/response_with_limit_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(target, options = {})
private

def cache_current_values
@original_filename = filename_from_content_disposition || filename_from_path || 'data'
@original_filename = filename_from_content_disposition.presence || filename_from_path.presence || 'data'
@size = @target.response.content_length
@tempfile = copy_to_tempfile(@target)
@content_type = ContentTypeDetector.new(@tempfile.path).detect
Expand Down

1 comment on commit 5bbc9a4

@LoboSolitario1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to send a Sugerence to MASTODON people: I saw in the list "Followers" when I had not followed them yet they come in GREY. My sugerence is to make that possible also from the "Following" list. Will make lot of easier to make a cleanup of accounts we follow inviting them to follow us. For example, I am an unknown musician and the best way I have to reach my music to the people is been followed. So I follow them and if in some days or week they don't followback I unfollow.

Would be a HUGE if you can do another list: You Follow They Don't
But I don't know how difficult could be

I am so enthusiastic with MASTODON. I know there is little people now. But I am sure MASTODON will be the Big One Social Net and from my tiny side, I will do all I can to help that to be ASAP. Thanks !!!!

Please sign in to comment.