nfokz wrote in changelog

[livejournal] r21259: LJSV-2083: Wrong links to "Unscreen comm...

Committer: anazarov
LJSV-2083: Wrong links to "Unscreen comment" and "Delete comment" in notificatin via email (missing journal name in links)
U   trunk/cgi-bin/LJ/Comment.pm
Modified: trunk/cgi-bin/LJ/Comment.pm
===================================================================
--- trunk/cgi-bin/LJ/Comment.pm	2012-02-28 09:22:09 UTC (rev 21258)
+++ trunk/cgi-bin/LJ/Comment.pm	2012-02-28 10:55:58 UTC (rev 21259)
@@ -1745,9 +1745,11 @@
 
         unshift @$params, $modes{$type}. $dtalkid;
     } else {
-        unshift @$params, 'journal='. $opts->{'journal'} || $entry->journal->user;
-        unshift @$params, 'talkid='. $dtalkid;
+        $journal ||= $entry->journal->user;
 
+        unshift @$params, 'journal='. $journal;
+        unshift @$params, 'talkid='.  $dtalkid;
+
         if ( grep { $type eq $_ } qw{ freeze unfreeze screen unscreen unspam } ) {
             unshift @$params, 'mode='. $type;
         } elsif ( $type eq 'spam' ) {