ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r17843: LJSUP-7377: Wishlist

Committer: ssafronova
LJSUP-7377: Wishlist
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2010-12-01 11:33:49 UTC (rev 17842)
+++ trunk/cgi-bin/cleanhtml.pl	2010-12-01 11:36:54 UTC (rev 17843)
@@ -413,6 +413,16 @@
                 next TOKEN;
             }
 
+            if ($tag eq "lj-wishlist") {
+                my $wishid = $attr->{wishid};
+                my $userid = $attr->{userid};
+                my $u = LJ::load_userid($userid);
+                next TOKEN unless $u;
+                my $wish = LJ::WishElement->load($u, $wishid);
+                next TOKEN unless $wish;
+                $newdata .= $wish->expand_entry;
+            }
+
             # Capture object and embed tags to possibly transform them into something else.
             if ($tag eq "object" || $tag eq "embed") {
                 if (LJ::are_hooks("transform_embed") && !$noexpand_embedded) {

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