madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21263: LJSUP-10298: Need to hide flag "don't pr...

Committer: sbelyaev
LJSUP-10298: Need to hide flag "don't provide to friends and in RSS" if user select community for field "Post to" or tries to post entry to community
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-02-28 13:17:28 UTC (rev 21262)
+++ trunk/cgi-bin/ljprotocol.pl	2012-02-28 14:13:47 UTC (rev 21263)
@@ -2276,10 +2276,12 @@
     return fail($err,151) if
         LJ::is_banned($posterid, $ownerid);
 
-    # don't allow backdated posts in communities
-     return fail($err,152) if
-            ($req->{'props'}->{"opt_backdated"} &&
-             $uowner->{'journaltype'} ne "P");
+    if (!LJ::is_enabled("delayed_entries")) {
+        # don't allow backdated posts in communities
+        return fail($err,152) if
+                ($req->{'props'}->{"opt_backdated"} &&
+                 $uowner->{'journaltype'} ne "P");
+    }
 
     # do processing of embedded polls (doesn't add to database, just
     # does validity checking)
@@ -3046,10 +3048,12 @@
     return fail($err, 210)
         if $req->{event} eq $CannotBeShown;
 
-   # don't allow backdated posts in communities 
-    return fail($err,152) if 
-                ($req->{'props'}->{"opt_backdated"} && 
-                 $uowner->{'journaltype'} ne "P"); 
+    if (!LJ::is_enabled("delayed_entries")) {
+        # don't allow backdated posts in communities 
+        return fail($err,152) if 
+                    ($req->{'props'}->{"opt_backdated"} && 
+                     $uowner->{'journaltype'} ne "P"); 
+    }
 
     # make year/mon/day/hour/min optional in an edit event,
     # and just inherit their old values

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