madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r11933: LJSUP-12148: JSON-RPC

Committer: sbelyaev
LJSUP-12148: JSON-RPC
U   trunk/cgi-bin/LJ/CleanHtml/Like.pm
U   trunk/templates/CleanHtml/Like.tmpl
Modified: trunk/cgi-bin/LJ/CleanHtml/Like.pm
===================================================================
--- trunk/cgi-bin/LJ/CleanHtml/Like.pm	2012-05-12 11:37:59 UTC (rev 11932)
+++ trunk/cgi-bin/LJ/CleanHtml/Like.pm	2012-05-14 07:20:12 UTC (rev 11933)
@@ -71,10 +71,8 @@
     my ($self, $params) = @_;
 
     my $remote = LJ::get_remote();
-    my $auth_token = LJ::Auth->ajax_auth_token($remote, '/__api/');
 
     $params->{'lj_like.repost'}     = 1;
-    $params->{'lj_like.auth_token'} = $auth_token;
 }
 
 sub  __facebook {

Modified: trunk/templates/CleanHtml/Like.tmpl
===================================================================
--- trunk/templates/CleanHtml/Like.tmpl	2012-05-12 11:37:59 UTC (rev 11932)
+++ trunk/templates/CleanHtml/Like.tmpl	2012-05-14 07:20:12 UTC (rev 11933)
@@ -1,7 +1,7 @@
 <div class="lj-like"><!--
 <tmpl_if lj_like.repost>
 <div class="lj-like-item lj-like-item-repost">
-    <a href="<tmpl_var lj_like.repost_url>?url="<tmpl_var url_ehtml>" data-auth-token="<tmpl_var lj_like.auth_token>">repost</a>
+    <a href="<tmpl_var lj_like.repost_url>?url="<tmpl_var url_ehtml>">repost</a>
 </div>
 </tmpl_if>
 

Tags: ljcom, madeon, pm, sbelyaev, tmpl
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