upload preivew + es command

This commit is contained in:
xiaomlove
2022-04-01 23:13:42 +08:00
parent 5f6b3ceb53
commit 4172f7c07c
49 changed files with 347 additions and 126 deletions

View File

@@ -17,7 +17,7 @@ class MessageResource extends JsonResource
return [
'id' => $this->id,
'subject' => $this->subject,
'msg' => strip_all_tags($this->msg),
'msg' => htmlspecialchars_decode(strip_all_tags($this->msg)),
'added_human' => $this->added->diffForHumans(),
'added' => format_datetime($this->added),
'send_user' => new UserResource($this->whenLoaded('send_user')),