madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22042: LJSUP-12150: New Repost feature (S2)

Committer: sbelyaev
LJSUP-12150: New Repost feature (S2)
U   trunk/bin/upgrading/s2layers/core1.s2
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/bin/upgrading/s2layers/core1.s2
===================================================================
--- trunk/bin/upgrading/s2layers/core1.s2	2012-05-23 14:25:12 UTC (rev 22041)
+++ trunk/bin/upgrading/s2layers/core1.s2	2012-05-23 14:54:47 UTC (rev 22042)
@@ -343,6 +343,7 @@
     function time_display () : string "Show the time of this post, with most useful information for user, and with tooltip for more.";
     function time_display (string datefmt, string timefmt) : string "time_display, with customized date/time formats.";
     function builtin formatted_subject (string{} opts) : string "formats subject - outputs subject as html-link, gets hash of attributes - class and(or) style ";
+    var readonly string reposted_by "The string about reposter";
 }
 
 class Entry extends EntryLite

Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2012-05-23 14:25:12 UTC (rev 22041)
+++ trunk/cgi-bin/LJ/S2.pm	2012-05-23 14:54:47 UTC (rev 22042)
@@ -1957,6 +1957,11 @@
     $e->{'system_time'} = DateTime_parts($arg->{'system_dateparts'});
     $e->{'depth'} = 0;  # Entries are always depth 0.  Comments are 1+.
 
+    if ($e->{'real_journalid'}) {
+        my $reposter = LJ::want_user($e->{'real_journalid'});
+        $e->{'reposted_by'} = LJ::Lang::ml( 'entry.reference.reposter', { 'reposter' => LJ::ljuser2($reposter) } );
+    }
+
     my $link_keyseq = $e->{'link_keyseq'};
     push @$link_keyseq, 'delete_reference'  if LJ::is_enabled('entry_reference');
     push @$link_keyseq, 'mem_add'           if LJ::is_enabled('memories');

Tags: livejournal, madeon, pm, s2, 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