madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22599: LJSUP-13240: Add new text variable for r...

Committer: sbelyaev
LJSUP-13240: Add new text variable for repost notifications about entry tags
U   trunk/cgi-bin/LJ/Event/JournalNewRepost.pm
Modified: trunk/cgi-bin/LJ/Event/JournalNewRepost.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/JournalNewRepost.pm	2012-08-08 11:53:10 UTC (rev 22598)
+++ trunk/cgi-bin/LJ/Event/JournalNewRepost.pm	2012-08-08 12:09:04 UTC (rev 22599)
@@ -246,6 +246,15 @@
     my $reposter = LJ::ljuser($self->reposter);
     my $entry    = $self->entry; 
 
+    my $tags = '';
+    # add tag info for entries that have tags
+    if ($entry->tags) {
+        $tags = ' ' . LJ::Lang::get_text($lang, 'esn.tags', undef,
+                        {
+                            tags => join(', ', $entry->tags )
+                        });
+    }
+
     my $about = $entry->subject_text ? "\"" . $entry->subject_text . "\"" : '';
 
     return LJ::Lang::get_text($lang, $ml_string, undef, 
@@ -254,6 +263,7 @@
             poster    => $poster,
             community => $journal,
             about     => $about,
+            tags      => $tags,
         }); 
 }
 

Tags: livejournal, madeon, pm, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments