Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r10601: LJSUP-8952 (<lj like> tag)

Committer: ailyin
LJSUP-8952 (<lj like> tag)
U   trunk/htdocs/gadgets/friends.bml
U   trunk/htdocs/stats/latest.bml
Modified: trunk/htdocs/gadgets/friends.bml
===================================================================
--- trunk/htdocs/gadgets/friends.bml	2011-06-02 08:01:46 UTC (rev 10600)
+++ trunk/htdocs/gadgets/friends.bml	2011-06-02 08:55:05 UTC (rev 10601)
@@ -79,8 +79,8 @@
             {
                 'remove_img_sizes' => 1,
                 'preformatted' => $logprops{$datakey}->{'opt_preformatted'},
-                'cuturl' => LJ::item_link(
-                    $friends{$friendid}, $itemid, $e->{'anum'}, ''),
+                'cuturl' => $entry->url,
+                'entry_url' => $entry->url,
                 'ljcut_disable' => $u ? $u->{'opt_ljcut_disable_friends'} : undef,
                 'suspend_msg' => $suspend_msg,
                 'unsuspend_supportid' => $suspend_msg ? $entry->prop("unsuspend_supportid") : 0,

Modified: trunk/htdocs/stats/latest.bml
===================================================================
--- trunk/htdocs/stats/latest.bml	2011-06-02 08:01:46 UTC (rev 10600)
+++ trunk/htdocs/stats/latest.bml	2011-06-02 08:55:05 UTC (rev 10601)
@@ -73,7 +73,10 @@
 
         $ret .= "<div class='entry'>";
         LJ::CleanHTML::clean_subject(\$subject);
-        LJ::CleanHTML::clean_event(\$body, {'cuturl' => LJ::item_link($uj, $p->{'itemid'}, $p->{'anum'})});
+        LJ::CleanHTML::clean_event( \$body, {
+            'cuturl'    => $url,
+            'entry_url' => $url,
+        } );
         $ret .= "$subject<br />\n" if $subject;
         $ret .= $body;
         $ret .= "</div></td></tr>\n";

Tags: andy, bml, ljcom
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