diff --git a/app/controllers/stream_notifications_controller.rb b/app/controllers/stream_notifications_controller.rb index 7b47a94..c68fbce 100644 --- a/app/controllers/stream_notifications_controller.rb +++ b/app/controllers/stream_notifications_controller.rb @@ -65,6 +65,10 @@ class StreamNotificationsController < ApplicationController @broadcast = Broadcast.find_by(stream_uid: notification_object_id) end + if @broadcast.nil? + logger.info "Ignoring broadcast from other environment. Type = #{notification_type}. Id = #{live_stream_id} / #{notification_object_id}" + head :ok + end head :ok if @broadcast.nil? end