gearheads
/
mastodon
Archived
2
0
Fork 0

Fix the fix

gh/stable
Eugen Rochko 2017-02-09 21:22:49 +01:00
parent 6331ed16e5
commit 0afed995ce
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class Status < ApplicationRecord
text.strip! text.strip!
spoiler_text&.strip! spoiler_text&.strip!
self.reply = !(in_reply_to_id.nil? && thread.nil?) unless attributes[:reply] self.reply = !(in_reply_to_id.nil? && thread.nil?) unless reply
self.reblog = reblog.reblog if reblog? && reblog.reblog? self.reblog = reblog.reblog if reblog? && reblog.reblog?
self.in_reply_to_account_id = (thread.account_id == account_id && thread.reply? ? thread.in_reply_to_account_id : thread.account_id) if reply? && !thread.nil? self.in_reply_to_account_id = (thread.account_id == account_id && thread.reply? ? thread.in_reply_to_account_id : thread.account_id) if reply? && !thread.nil?
self.visibility = (account.locked? ? :private : :public) if visibility.nil? self.visibility = (account.locked? ? :private : :public) if visibility.nil?