Remove debug code
This commit is contained in:
parent
595b02e689
commit
20b0f17d98
2 changed files with 0 additions and 14 deletions
app
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue