Merge branch 'master' into development
This commit is contained in:
commit
f91b6fa9e1
4 changed files with 9 additions and 3 deletions
|
@ -28,4 +28,8 @@ class Favourite < ApplicationRecord
|
|||
def target
|
||||
thread
|
||||
end
|
||||
|
||||
before_validation do
|
||||
self.status = status.reblog if status.reblog?
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue