Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Added timeline echo for photos and timeline notifications #1

Merged
merged 6 commits into from
May 30, 2013
Merged

Conversation

mimming
Copy link
Contributor

@mimming mimming commented May 6, 2013

No description provided.

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')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/if(/if (/

Copy link
Contributor Author

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");
Copy link
Member

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.

Copy link
Contributor Author

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";
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

mimming added a commit that referenced this pull request May 30, 2013
Added timeline echo for photos and timeline notifications
@mimming mimming merged commit 7f0b979 into master May 30, 2013
@mimming mimming deleted the notify branch May 30, 2013 04:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants