新增:后台管理论坛审核

This commit is contained in:
yystopf 2026-04-03 11:15:26 +08:00
parent 1a855bc11e
commit 2f6355fcf2
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ class UserAction < ApplicationRecord
else
return "上传附件地址:<a href=\"#{Rails.application.config_for(:configuration)['platform_url']}/attachments/#{attachment.id}\">#{attachment.title}</a>"
end
when "MemoPassed" then "<a href=\"#{Rails.application.config_for(:configuration)['platform_url']}/forumsDetail/#{memo.id}\">#{memo&.subject}</a>"
when "MemoPassed" then "<a href=\"#{Rails.application.config_for(:configuration)['platform_url']}/forumsDetail/#{memo&.id}\">#{memo&.subject}</a>"
else "--"
end
end
@ -122,7 +122,7 @@ class UserAction < ApplicationRecord
end
def memo
memo = if action_type == "MemoPassed" && data_bank.present?
memo = if action_type == "MemoPassed"
Memo.find_by(id: self.action_id)
else
nil