[livejournal] r21958: LJSUP-12198: Delayed entry duplication c...
Committer: sbelyaev
LJSUP-12198: Delayed entry duplication check fix.U trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl 2012-05-15 11:16:01 UTC (rev 21957)
+++ trunk/cgi-bin/ljprotocol.pl 2012-05-15 11:32:08 UTC (rev 21958)
@@ -2439,16 +2439,15 @@
if ($delayed) {
my $entry = LJ::DelayedEntry->dupsig_check($uowner, $posterid, $req);
- if (!$entry) {
- return;
+ if ($entry) {
+ $res->{'delayedid'} = $entry->delayedid;
+ $res->{'type'} = 'delayed';
+ $res->{'url'} = $entry->url;
+
+ $res_done = 1;
+ $release->();
}
-
- $res->{'delayedid'} = $entry->delayedid;
- $res->{'type'} = 'delayed';
- $res->{'url'} = $entry->url;
-
- $res_done = 1;
- $release->();
+ return;
}
LJ::load_user_props($u, { use_master => 1, reload => 1 }, 'dupsig_post');
