mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: render_404 is not defined (#19769)
Note this endpoint is soon going to be replaced.
This commit is contained in:
parent
aa4ff47208
commit
d464f1fc62
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user