0
0
Fork 0

Ensure that reblogs and favs always refer to the original status rather than a reblog wrapper

This commit is contained in:
Eugen Rochko 2016-12-22 11:34:05 +01:00
parent 025f7bb223
commit 3caf0cfb03
2 changed files with 5 additions and 0 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