Files
danbooru/app/logical/forum_updater.rb
evazion 35d26e92e9 BURs: don't update OP when approving BUR.
When approving or rejecting a BUR, don't edit the OP forum post to add
an EDIT: line stating the request has been approved. Instead just let
the embedded BUR state who it was approved by, and post a reply saying
that the request has been approved.
2020-12-03 17:15:24 -06:00

14 lines
302 B
Ruby

class ForumUpdater
attr_reader :forum_topic
def initialize(forum_topic)
@forum_topic = forum_topic
end
def update(message)
CurrentUser.scoped(User.system) do
forum_topic.forum_posts.create(body: message, skip_mention_notifications: true, creator: User.system)
end
end
end