mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 19:23:41 +01:00
Fix order of attachments (see #269)
This commit is contained in:
parent
397f7dda5d
commit
f860d15d39
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ class MediaAttachment < ApplicationRecord
|
||||||
|
|
||||||
validates :account, presence: true
|
validates :account, presence: true
|
||||||
|
|
||||||
|
default_scope { order('id asc') }
|
||||||
|
|
||||||
def local?
|
def local?
|
||||||
remote_url.blank?
|
remote_url.blank?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue