sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r19271: LJSUP-8993: Parameter properly named

Committer: vtroitsky
LJSUP-8993: Parameter properly named
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2011-06-09 10:57:35 UTC (rev 19270)
+++ trunk/cgi-bin/ljprotocol.pl	2011-06-09 11:02:36 UTC (rev 19271)
@@ -725,8 +725,8 @@
         # add parameters to lj-tags
         #LJ::EmbedModule->expand_entry($users->{$comment->{posterid}}, \$comment->{text}, get_video_id => 1) if($req->{get_video_ids});
 
-        if ($req->{mode}) {
-            LJ::EmbedModule->expand_entry($users->{$comment->{posterid}}, \$comment->{text}, edit => 1) if $req->{mode} eq 'stored';
+        if ($req->{view}) {
+            LJ::EmbedModule->expand_entry($users->{$comment->{posterid}}, \$comment->{text}, edit => 1) if $req->{view} eq 'stored';
         } elsif ($req->{parseljtags}) {
             $comment->{text} = LJ::convert_lj_tags_to_links(
                 event => $comment->{text},
@@ -833,8 +833,8 @@
 
         LJ::EmbedModule->expand_entry($entry->poster, \$h{event_raw}, get_video_id => 1) if $req->{get_video_ids};
 
-        if ($req->{mode}) {
-            LJ::EmbedModule->expand_entry($entry->poster, \$h{event_raw}, edit => 1) if $req->{mode} eq 'stored';
+        if ($req->{view}) {
+            LJ::EmbedModule->expand_entry($entry->poster, \$h{event_raw}, edit => 1) if $req->{view} eq 'stored';
         } elsif ($req->{parseljtags}) {
             $h{event_raw} = LJ::convert_lj_tags_to_links(
                 event => $h{event_raw},
@@ -3121,8 +3121,8 @@
 
         LJ::EmbedModule->expand_entry($uowner, \$t->[1], get_video_id => 1) if($req->{get_video_ids});
 
-        if ($req->{mode}) {
-            LJ::EmbedModule->expand_entry($uowner, \$t->[1], edit => 1) if $req->{mode} eq 'stored';
+        if ($req->{view}) {
+            LJ::EmbedModule->expand_entry($uowner, \$t->[1], edit => 1) if $req->{view} eq 'stored';
         } elsif ($req->{parseljtags}) {
             $t->[1] = LJ::convert_lj_tags_to_links(
                 event => $t->[1],

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