0
0
Fork 0

Merge branch 'master' into development

This commit is contained in:
Eugen Rochko 2016-12-22 11:35:00 +01:00
commit f91b6fa9e1
4 changed files with 9 additions and 3 deletions

View file

@ -28,4 +28,8 @@ class Favourite < ApplicationRecord
def target
thread
end
before_validation do
self.status = status.reblog if status.reblog?
end
end

View file

@ -168,6 +168,7 @@ class Status < ApplicationRecord
before_validation do
text.strip!
self.reblog = reblog.reblog if reblog? && reblog.reblog?
self.in_reply_to_account_id = thread.account_id if reply?
self.visibility = :public if visibility.nil?
end