madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21171: LJSUP-11243: Page for temporal link

Committer: sbelyaev
LJSUP-11243: Page for temporal link
U   trunk/htdocs/preview/entry.bml
Modified: trunk/htdocs/preview/entry.bml
===================================================================
--- trunk/htdocs/preview/entry.bml	2012-02-13 13:40:05 UTC (rev 21170)
+++ trunk/htdocs/preview/entry.bml	2012-02-13 13:46:54 UTC (rev 21171)
@@ -46,7 +46,10 @@
     } else {
         my $delayed_obj = LJ::DelayedEntry->get_entry_by_id($u, $delayed_id);
         if (!$delayed_obj) {
-            return "no such scheduled entry $delayed_id for user "  . $u->user;
+            LJ::Request->pnotes ('error' => 'e404');
+            LJ::Request->pnotes ('remote' => LJ::get_remote());
+            BML::return_error_status(404);
+            return;
         }
 
         %req = %{$delayed_obj->data};

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