This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix for media attachments remote URL download
closed-social-glitch-2
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