slartyblartfast (slartyblartfast) wrote in changelog,
slartyblartfast
slartyblartfast
changelog

[ljcom] r8321: LJGI-64: Video in friend posts in iGoogl...

Committer: mchernyshev
LJGI-64: Video in friend posts in iGoogle
- added option to LJ::expand_embedded();
- removed second call of LJ::cleanHTML().
U   trunk/htdocs/gadgets/friends.bml
Modified: trunk/htdocs/gadgets/friends.bml
===================================================================
--- trunk/htdocs/gadgets/friends.bml	2010-03-22 06:05:15 UTC (rev 8320)
+++ trunk/htdocs/gadgets/friends.bml	2010-03-22 09:16:03 UTC (rev 8321)
@@ -84,7 +84,15 @@
                 'ljcut_disable' => $u ? $u->{'opt_ljcut_disable_friends'} : undef,
                 'suspend_msg' => $suspend_msg,
                 'unsuspend_supportid' => $suspend_msg ? $entry->prop("unsuspend_supportid") : 0, });
-        LJ::expand_embedded($friends{$friendid}, $ditemid, $u, \$text);
+        LJ::expand_embedded($friends{$friendid}, $ditemid, $u, \$text,
+            expand_to_link =>
+                {
+                    link    => $entry->url,
+                    caption => 'View movie',
+                    target  => '_blank',
+                }
+        );
+
         $text = LJ::ContentFlag->transform_post(post => $text, journal => $friends{$friendid},
             remote => $u, entry => $entry);
 
@@ -127,8 +135,6 @@
             }
         }
 
-        LJ::CleanHTML::clean_event(\$h{text});
-
         push @$out, \%h;
     }
 

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