-
Notifications
You must be signed in to change notification settings - Fork 73
Added timeline echo for photos and timeline notifications #1
Conversation
set_time_limit(0); | ||
|
||
// And one more thing to try: forking the heavy lifting into a new process. Yeah, crazy eh? | ||
if(function_exists('pcntl_fork')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/if(/if (/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
break; | ||
case 'locations': | ||
$location = $mirror_service->locations->get("latest"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would recommend using $request['itemId'] here to be safe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
if($_SERVER['REQUEST_METHOD'] != "POST") { | ||
http_send_status(400); | ||
if ($_SERVER['REQUEST_METHOD'] != "POST") { | ||
echo "method not supported"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set the status to 405 Method not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Added timeline echo for photos and timeline notifications
No description provided.