From 5464e5a0b71c2b66b1e4707eaa854d9801558525 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 12 Dec 2019 11:12:07 -0600 Subject: avoid letting folks kick themselves out of their own threads --- app/lib/bangtags.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/lib') diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 201ed9622..05d65c192 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -303,7 +303,7 @@ class Bangtags next if @parent_status.nil? parent_account = @parent_status.account end - next if parent_account.nil? + next if parent_account.nil? || parent_account.id == @account.id ConversationKick.find_or_create_by(account_id: parent_account.id, conversation_id: status.conversation_id) convo_statuses.where(account_id: parent_account.id).find_each do |s| RemoveStatusForAccountService.new.call(@account, s) @@ -325,7 +325,7 @@ class Bangtags next if @parent_status.nil? parent_account = @parent_status.account end - next if parent_account.nil? + next if parent_account.nil? || parent_account.id == @account.id ConversationKick.where(account_id: parent_account.id, conversation_id: status.conversation_id).destroy_all service_dm( 'janitor', @account, -- cgit