From f92167257fe732035dee7f9684a10a6c86add339 Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Wed, 3 Sep 2008 16:55:12 +0200 Subject: [PATCH] Mailbot: subscribe notifications --- scripts/mailbot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/mailbot b/scripts/mailbot index c43c4c5..b0a1227 100755 --- a/scripts/mailbot +++ b/scripts/mailbot @@ -78,6 +78,9 @@ sub submitItem( $$$$$ ) { my $hid = $tables->last(); tlog( "mailbot: History created $hid $id ".logEscape( $name )." ".logEscape( $description )." ".logEscape( $text ) ); notify( $tables, $id, $hid, $created ? 2 : 1, $created ? 0 : 1 ); + if( !$tables->notifExists( $author, $id ) ) { + $tables->submitNotification( $author, $id, { 'recursive' => 0, 'notification' => 1, 'way' => 0 } ); + } } if (!$patch) { -- 2.39.2