Added status.account_id to redis socket for statuscard stream

This commit is contained in:
mgabdev 2019-08-28 16:41:49 -04:00
parent 30c30c696a
commit f21f2651d6

View File

@ -187,6 +187,6 @@ class FetchLinkCardService < BaseService
def send_status_update_payload(status)
@payload = InlineRenderer.render(status, nil, :status)
@payload = Oj.dump(event: :update, payload: @payload)
Redis.current.publish('statuscard', @payload)
Redis.current.publish("statuscard:#{status.account_id}", @payload)
end
end