PostStatusService can attach media to status, ProcessFeedService likewise
This commit is contained in:
parent
ae1fac0062
commit
eec0dc46a6
12 changed files with 32 additions and 85 deletions
|
@ -10,4 +10,12 @@ class MediaAttachment < ApplicationRecord
|
|||
def local?
|
||||
self.remote_url.blank?
|
||||
end
|
||||
|
||||
def file_remote_url=(url)
|
||||
unless self[:file_remote_url] == url
|
||||
self.file = URI.parse(url)
|
||||
end
|
||||
|
||||
self[:file_remote_url] = url
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue