mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 06:51:27 +08:00
FIX: Polymorphic bookmarks for new user narrative bot (#16683)
This commit allows the new user narrative bot to work with polymorphic bookmarks, gated behind the use_polymorphic_bookmarks site setting.
This commit is contained in:
@ -243,7 +243,6 @@ module DiscourseNarrativeBot
|
||||
post
|
||||
end
|
||||
|
||||
# TODO (martin) [POLYBOOK] Fix up narrative bot bookmark interactions in a separate PR.
|
||||
def missing_bookmark
|
||||
return unless valid_topic?(@post.topic_id)
|
||||
return if @post.user_id == self.discobot_user.id
|
||||
@ -254,7 +253,6 @@ module DiscourseNarrativeBot
|
||||
false
|
||||
end
|
||||
|
||||
# TODO (martin) [POLYBOOK] Fix up narrative bot bookmark interactions in a separate PR.
|
||||
def reply_to_bookmark
|
||||
return unless valid_topic?(@post.topic_id)
|
||||
return unless @post.user_id == self.discobot_user.id
|
||||
|
Reference in New Issue
Block a user