ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r9831: LJSUP-7377: Wishlist

Committer: ssafronova
LJSUP-7377: Wishlist
U   trunk/bin/upgrading/en_LJ.dat
U   trunk/cgi-bin/LJ/Hooks/SUP.pm
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat	2010-12-13 10:04:12 UTC (rev 9830)
+++ trunk/bin/upgrading/en_LJ.dat	2010-12-13 11:00:32 UTC (rev 9831)
@@ -9252,7 +9252,9 @@
 
 widget.gamefriendsplaying.title=Want more games?
 
+widget.wishlist.plus_me=+Me
 
+widget.wishlist.view_full=View full wishlist
 
 xcolibur.greeting.anon=Welcome to LiveJournal!
 

Modified: trunk/cgi-bin/LJ/Hooks/SUP.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/SUP.pm	2010-12-13 10:04:12 UTC (rev 9830)
+++ trunk/cgi-bin/LJ/Hooks/SUP.pm	2010-12-13 11:00:32 UTC (rev 9831)
@@ -1019,4 +1019,18 @@
             );
 });
 
+LJ::register_hook("deletepost", sub {
+    my ($jid, $jitemid) = @_;
+
+    my $ju = LJ::load_userid($jid);
+    return unless $ju;
+
+    my $entry  = LJ::Entry->new($ju, jitemid => $jitemid);
+    return unless $entry->valid;
+
+    # entry is valid - it is not deleted yet
+
+    LJ::WishList->clean_post_id($ju, $entry->ditemid);
+});
+
 1;

Tags: dat, ljcom, pm, 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