madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22108: LJSUP-12151: New Repost feature (S1)

Committer: sbelyaev
LJSUP-12151: New Repost feature (S1)
U   trunk/cgi-bin/ljviews.pl
Modified: trunk/cgi-bin/ljviews.pl
===================================================================
--- trunk/cgi-bin/ljviews.pl	2012-05-30 10:12:23 UTC (rev 22107)
+++ trunk/cgi-bin/ljviews.pl	2012-05-30 10:15:50 UTC (rev 22108)
@@ -1465,10 +1465,22 @@
             $vars->{'LASTN_EVENT_PRIVATE'}) { $var = 'LASTN_EVENT_PRIVATE'; }
         if ($security eq "usemask" &&
             $vars->{'LASTN_EVENT_PROTECTED'}) { $var = 'LASTN_EVENT_PROTECTED'; }
-        if (LJ::is_enabled("delayed_entries")) {
-            $var .= '_STICKY' if $entry_obj->is_sticky();
+
+        if (!$repost_entry_obj) {
+            if (LJ::is_enabled("delayed_entries")) {
+                $var .= '_STICKY' if $entry_obj->is_sticky();
+            }
+        } else {
+            if (LJ::is_enabled("entry_reference")) {
+            #    $var .= '_REPOSTED';
+
+                my $reposter = $repost_entry_obj->poster;
+                my $ref_text = LJ::Lang::ml( 'entry.reference.reposter', 
+                                    { 'reposter' => LJ::ljuser2($reposter) } );
+                $lastn_event{'reposted_by'} =  $ref_text;
+            }
         }
-
+    
         $$events .= LJ::fill_var_props($vars, $var, \%lastn_event);
         LJ::run_hook('notify_event_displayed', $entry_obj);
         

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