mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 00:54:02 -05:00
Fix order of attachments (see #269)
This commit is contained in:
parent
397f7dda5d
commit
f860d15d39
@ -16,6 +16,8 @@ class MediaAttachment < ApplicationRecord
|
||||
|
||||
validates :account, presence: true
|
||||
|
||||
default_scope { order('id asc') }
|
||||
|
||||
def local?
|
||||
remote_url.blank?
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user