bbcode_attach_to_img

This commit is contained in:
xiaomlove
2026-01-23 13:01:16 +07:00
parent 7494041005
commit 3ced82fc0a
3 changed files with 28 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ class CommentResource extends JsonResource
{
return [
'id' => $this->id,
'text' => $this->text,
'text' => bbcode_attach_to_img($this->text),
'updated_at' => format_datetime($this->editdate),
'created_at' => format_datetime($this->added),
'create_user' => new UserResource($this->whenLoaded('create_user')),