about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-09 21:22:49 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-09 21:22:49 +0100
commit0afed995ce60dec11bc7718f83ca5afde86f6228 (patch)
treef3ae80b93788876f1d4bde71c425e4c13fddae14 /app/models/status.rb
parent6331ed16e5953e3a006896c6df07b0f82cfd2350 (diff)
Fix the fix
Diffstat (limited to 'app/models/status.rb')
-rw-r--r--app/models/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index c6690c312..d2be72308 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -176,7 +176,7 @@ class Status < ApplicationRecord
     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.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?