This website works better with JavaScript.
Home
Explore
Help
Sign In
jyt94
/
closedSocialMastodon
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix for media attachments remote URL download
closed-social-v3
Eugen Rochko
7 years ago
parent
1d9c886518
commit
ed94e998bc
1 changed files
with
1 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-5
app/models/media_attachment.rb
+ 1
- 5
app/models/media_attachment.rb
View File
@ -12,10 +12,6 @@ class MediaAttachment < ApplicationRecord
end
def
file_remote_url
=
(
url
)
unless
self
[
:file_remote_url
]
==
url
self
.
file
=
URI
.
parse
(
url
)
end
self
[
:file_remote_url
]
=
url
self
.
file
=
URI
.
parse
(
url
)
end
end
Write
Preview
Loading…
Cancel
Save