Index: openacs-4/packages/acs-templating/www/scripts/xinha/attach-image.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/scripts/xinha/attach-image.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-templating/www/scripts/xinha/attach-image.tcl 1 Sep 2006 18:02:27 -0000 1.2 +++ openacs-4/packages/acs-templating/www/scripts/xinha/attach-image.tcl 6 Oct 2006 00:52:27 -0000 1.3 @@ -24,10 +24,12 @@ db_multirow -unclobber recent_images recent_images \ { select ci.item_id, ci.name - from cr_items ci, cr_revisionsx cr + from cr_items ci, cr_revisionsx cr, cr_child_rels ccr where ci.live_revision=cr.revision_id and ci.content_type='image' and cr.creation_user=:user_id + and ccr.parent_id=ci.item_id + and ccr.relation_tag='image-thumbnail' order by creation_date desc limit 6 } {