madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22449: LJSUP-12901: Reposted entry looks incorr...

Committer: sbelyaev
LJSUP-12901: Reposted entry looks incorrectly in mobile version
U   trunk/cgi-bin/LJ/Entry/Repost.pm
Modified: trunk/cgi-bin/LJ/Entry/Repost.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry/Repost.pm	2012-07-16 08:50:27 UTC (rev 22448)
+++ trunk/cgi-bin/LJ/Entry/Repost.pm	2012-07-16 09:48:47 UTC (rev 22449)
@@ -660,7 +660,32 @@
             ${$opts->{'event'}} = $event_text;
         }
     }
+    
+    if ($opts->{'head_mob'}) {
+        my $event_text = $original_entry_obj->event_raw;
 
+        if ($props->{use_repost_signature}) {
+            my $journal = $original_entry_obj->journal; 
+
+            my $text_var;
+            if ($journal->is_community) {
+                $text_var = LJ::u_equals($remote, $entry_obj->poster) ? 'entry.reference.journal.community.owner' : 
+                                                                        'entry.reference.journal.community.guest';
+            } else {
+                $text_var = LJ::u_equals($remote, $entry_obj->poster) ? 'entry.reference.journal.owner' :
+                                                                        'entry.reference.journal.guest';
+            }
+
+            my $event =  LJ::Lang::ml($text_var,  
+                                        { 'author'          => LJ::ljuser($original_entry_obj->poster),
+                                          'reposter'        => LJ::ljuser($entry_obj->poster),
+                                          'communityname'   => LJ::ljuser($original_entry_obj->journal),,
+                                          'datetime'        => $entry_obj->eventtime_mysql,
+                                          'text'            => "", });
+            ${$opts->{'head_mob'}} = $event;
+        }
+    }
+
     if ($opts->{'event_friend'}) {
         my $event_text = $original_entry_obj->event_raw;
 

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