2013-02-05 14:16:51 -05:00
|
|
|
module Jobs
|
|
|
|
|
|
|
|
class FeatureTopicUsers < Jobs::Base
|
|
|
|
|
|
|
|
def execute(args)
|
|
|
|
topic = Topic.where(id: args[:topic_id]).first
|
|
|
|
raise Discourse::InvalidParameters.new(:topic_id) unless topic.present?
|
|
|
|
|
2013-03-12 12:33:42 -04:00
|
|
|
topic.feature_topic_users(args)
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|