Skip to content
Snippets Groups Projects
Commit 0afed995 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix the fix

parent 6331ed16
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment