An image uploaded into a comment. Rows use object_type = 'comment_image' and object_id = comment ID. The model has no global scope; filter by object_type yourself or go through Comment::images().
For attachment_type = 'url', the stored full_url. Otherwise a site URL with fbs=1&fbs_comment_image={file_hash} that serves the file through FluentBoards
CommentImage Model
{wp_db_prefix}fbs_attachmentsAn image uploaded into a comment. Rows use
object_type = 'comment_image'andobject_id= comment ID. The model has no global scope; filter byobject_typeyourself or go throughComment::images().On create, the model sets a random
file_hash.Attributes
Same columns as Attachment.
Appended attributes:
attachment_type = 'url', the storedfull_url. Otherwise a site URL withfbs=1&fbs_comment_image={file_hash}that serves the file through FluentBoardsUsage
2
3
4
5
6
7
Scopes
withComment()
Filters to
object_type = 'comment_image'and eager-loads the comment (id,board_id).Relations
comment
FluentBoards\App\Models\Comment