Index: openacs-4/packages/forums/tcl/messages-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/tcl/messages-procs.tcl,v diff -u -r1.59.2.28 -r1.59.2.29 --- openacs-4/packages/forums/tcl/messages-procs.tcl 3 Jan 2022 12:58:01 -0000 1.59.2.28 +++ openacs-4/packages/forums/tcl/messages-procs.tcl 20 Mar 2023 15:02:15 -0000 1.59.2.29 @@ -500,10 +500,19 @@ } } -ad_proc -public forum::message::get_attachments { +ad_proc -deprecated forum::message::get_attachments { {-message_id:required} } { Get the attachments for a message. + + DEPRECATED: this proc requires a connection context in a forums + package instance to work as expected. An alternative could be to + retrieve the forum_id from the message instead, but as this proc + is not used anywhere and its logics are not difficult to inline, + we just deprecate it. + + @see forum::attachments_enabled_p + @see attachments::get_attachments } { # If attachments aren't enabled, then we stop if {![forum::attachments_enabled_p]} {