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.
14 lines
302 B
Ruby
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
|