forum::markdown_image::attachment (private)

 forum::markdown_image::attachment message_id uuid

Defined in packages/forums/tcl/markdown-image-procs.tcl

Look up a previously committed inline image on its specific message.

Parameters:
message_id (required)
uuid (required)

Partial Call Graph (max 5 caller/called nodes):
forum::markdown_image::attach forum::markdown_image::attach (private) forum::markdown_image::attachment forum::markdown_image::attachment forum::markdown_image::attach->forum::markdown_image::attachment forum::markdown_image::discard_attached_draft forum::markdown_image::discard_attached_draft (private) forum::markdown_image::discard_attached_draft->forum::markdown_image::attachment forum::markdown_image::drafts forum::markdown_image::drafts (private) forum::markdown_image::drafts->forum::markdown_image::attachment packages/forums/www/markdown-image.tcl packages/forums/ www/markdown-image.tcl packages/forums/www/markdown-image.tcl->forum::markdown_image::attachment db_string db_string (public) forum::markdown_image::attachment->db_string

Testcases:
No testcase defined.
Source code:
    set name markdown-$message_id-$uuid
    return [db_string forum_markdown_image_attachment {
        select r.revision_id
        from attachments a
        join cr_items i on i.item_id = a.item_id
        join cr_revisions r on r.revision_id = i.live_revision
        where a.object_id = :message_id and i.name = :name
          and r.mime_type in ('image/png', 'image/jpeg', 'image/gif')
    } -default ""]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: