FIX: render_404 is not defined (#19769)

Note this endpoint is soon going to be replaced.
This commit is contained in:
Joffrey JAFFEUX 2023-01-06 14:38:08 +01:00 committed by GitHub
parent aa4ff47208
commit d464f1fc62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,8 +288,8 @@ class Chat::ChatController < Chat::ChatBaseController
end
def message_link
return render_404 if @message.blank? || @message.deleted_at.present?
return render_404 if @message.chat_channel.blank?
raise Discourse::NotFound if @message.blank? || @message.deleted_at.present?
raise Discourse::NotFound if @message.chat_channel.blank?
set_channel_and_chatable_with_access_check(chat_channel_id: @message.chat_channel_id)
render json:
success_json.merge(