From 20b0f17d985269591fc244dc04a6bc5df715831e Mon Sep 17 00:00:00 2001 From: KMY Date: Mon, 27 Feb 2023 14:29:26 +0900 Subject: [PATCH] Remove debug code --- app/services/un_emoji_react_service.rb | 3 --- app/workers/feed_any_json_worker.rb | 11 ----------- 2 files changed, 14 deletions(-) diff --git a/app/services/un_emoji_react_service.rb b/app/services/un_emoji_react_service.rb index 5a2e9eaf1c..d13b8fd2a9 100644 --- a/app/services/un_emoji_react_service.rb +++ b/app/services/un_emoji_react_service.rb @@ -10,9 +10,6 @@ class UnEmojiReactService < BaseService @status = Status.find(status_id) if emoji_reaction - p '================================ DEBUG2 G' - emoji_reaction.destroy - p '================================ DEBUG2 H' create_notification(emoji_reaction) if !@account.local? && @account.activitypub? notify_to_followers(emoji_reaction) if @account.local? write_stream(emoji_reaction) diff --git a/app/workers/feed_any_json_worker.rb b/app/workers/feed_any_json_worker.rb index 33aa254770..cf9bdca17d 100644 --- a/app/workers/feed_any_json_worker.rb +++ b/app/workers/feed_any_json_worker.rb @@ -7,23 +7,12 @@ class FeedAnyJsonWorker include AccountLimitable def perform(payload_json, status_id, my_account_id = nil) - p '========================================= DEBUG AAA' redis.publish("timeline:#{my_account_id}", payload_json) if my_account_id.present? - p '========================================= DEBUG AA' - p status_id - p status_id.to_i status = Status.find(status_id.to_i) - p '========================================= DEBUG AAAAAAAA' - p status.present? if status.present? - p '========================================= DEBUG A' - p scope_status(status) - p '========================================= DEBUG C' scope_status(status).find_each do |account| - p '========================================= DEBUG D' - p redis.exists?("subscribed:timeline:#{account.id}") redis.publish("timeline:#{account.id}", payload_json) if redis.exists?("subscribed:timeline:#{account.id}") end