@ -28,4 +28,8 @@ class Favourite < ApplicationRecord
def target
thread
end
before_validation do
self.status = status.reblog if status.reblog?
@ -160,6 +160,7 @@ class Status < ApplicationRecord
text.strip!
self.reblog = reblog.reblog if reblog? && reblog.reblog?
self.in_reply_to_account_id = thread.account_id if reply?