A platform for community discussion. Free, open, simple.
# frozen_string_literal: true module Jobs class RemoveBanner < ::Jobs::Base def execute(args) topic_id = args[:topic_id] return if topic_id.blank? topic = Topic.find_by(id: topic_id) topic.presence&.remove_banner!(Discourse.system_user) end end end