|
|
@ -87,7 +87,10 @@ class MessagesController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
def show
|
|
|
|
@message = Message.includes(:attachments, :message_detail, :children, :author => :user_extension, :board => [{course: :board_course_modules}]).find_by_id params[:id]
|
|
|
|
@message = Message.includes(:attachments, :message_detail,
|
|
|
|
|
|
|
|
:children, :author => :user_extension,
|
|
|
|
|
|
|
|
:board => [{course: :board_course_modules}])
|
|
|
|
|
|
|
|
.find_by_id params[:id]
|
|
|
|
return normal_status(-2, "ID为#{params[:id]}的帖子不存在") if @message.nil?
|
|
|
|
return normal_status(-2, "ID为#{params[:id]}的帖子不存在") if @message.nil?
|
|
|
|
|
|
|
|
|
|
|
|
@attachment_size = @message.attachments.size
|
|
|
|
@attachment_size = @message.attachments.size
|
|
|
|