madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22440: LJSUP-12940: Remove duplicating users fr...

Committer: sbelyaev
LJSUP-12940: Remove duplicating users from reposted list and fix counter
U   trunk/cgi-bin/LJ/Entry/Repost.pm
Modified: trunk/cgi-bin/LJ/Entry/Repost.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry/Repost.pm	2012-07-13 09:19:05 UTC (rev 22439)
+++ trunk/cgi-bin/LJ/Entry/Repost.pm	2012-07-13 09:55:35 UTC (rev 22440)
@@ -97,6 +97,14 @@
     LJ::MemCache::delete("reposters_list_chunk:$journalid:$jitemid:$last_block_id");
     
     #
+    # remove prev block too
+    #
+    if ($last_block_id > 0) {
+        $last_block_id--;
+        LJ::MemCache::delete("reposters_list_chunk:$journalid:$jitemid:$last_block_id")
+    }
+    
+    #
     # inc or add reposters counter
     #
     my $memcache_key_count = "reposted_count:$journalid:$jitemid";

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