logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: f860d15d39687f43ff36930c3c079abe677ae098
parent: 397f7dda5dd640de70d7a76158857f3f63ebd488
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Mon, 28 Nov 2016 13:49:42 +0100

Fix order of attachments (see #269)

Diffstat:

Mapp/models/media_attachment.rb2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb @@ -16,6 +16,8 @@ class MediaAttachment < ApplicationRecord validates :account, presence: true + default_scope { order('id asc') } + def local? remote_url.blank? end