{"action":"created","comment":{"url":"https://api.github.com/repos/electerious/Lychee/pulls/comments/75578821","id":75578821,"diff_hunk":"@@ -418,6 +424,12 @@ lychee.html = function(literalSections, ...substs) {\n \n lychee.error = function(errorThrown, params, data) {\n \n+\t// in this case, our cookie has probably expired\n+\tif (data.startsWith('Error: Function not available for guests.')) {","path":"src/scripts/lychee.js","position":18,"original_position":18,"commit_id":"21b2f587d5d5f7f6ba56b89ec04353db6175253f","original_commit_id":"21b2f587d5d5f7f6ba56b89ec04353db6175253f","user":{"login":"electerious","id":499088,"avatar_url":"https://avatars.githubusercontent.com/u/499088?v=3","gravatar_id":"","url":"https://api.github.com/users/electerious","html_url":"https://github.com/electerious","followers_url":"https://api.github.com/users/electerious/followers","following_url":"https://api.github.com/users/electerious/following{/other_user}","gists_url":"https://api.github.com/users/electerious/gists{/gist_id}","starred_url":"https://api.github.com/users/electerious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electerious/subscriptions","organizations_url":"https://api.github.com/users/electerious/orgs","repos_url":"https://api.github.com/users/electerious/repos","events_url":"https://api.github.com/users/electerious/events{/privacy}","received_events_url":"https://api.github.com/users/electerious/received_events","type":"User","site_admin":false},"body":"Should use `data===` instead. startsWith is not supported by IE11. Not worth to break support for this function.","created_at":"2016-08-20T13:47:39Z","updated_at":"2016-08-20T13:47:39Z","html_url":"https://github.com/electerious/Lychee/pull/598#discussion_r75578821","pull_request_url":"https://api.github.com/repos/electerious/Lychee/pulls/598","_links":{"self":{"href":"https://api.github.com/repos/electerious/Lychee/pulls/comments/75578821"},"html":{"href":"https://github.com/electerious/Lychee/pull/598#discussion_r75578821"},"pull_request":{"href":"https://api.github.com/repos/electerious/Lychee/pulls/598"}}},"pull_request":{"url":"https://api.github.com/repos/electerious/Lychee/pulls/598","id":82074660,"html_url":"https://github.com/electerious/Lychee/pull/598","diff_url":"https://github.com/electerious/Lychee/pull/598.diff","patch_url":"https://github.com/electerious/Lychee/pull/598.patch","issue_url":"https://api.github.com/repos/electerious/Lychee/issues/598","number":598,"state":"open","locked":false,"title":"Redirect to start page if we were logged out.","user":{"login":"hrniels","id":185603,"avatar_url":"https://avatars.githubusercontent.com/u/185603?v=3","gravatar_id":"","url":"https://api.github.com/users/hrniels","html_url":"https://github.com/hrniels","followers_url":"https://api.github.com/users/hrniels/followers","following_url":"https://api.github.com/users/hrniels/following{/other_user}","gists_url":"https://api.github.com/users/hrniels/gists{/gist_id}","starred_url":"https://api.github.com/users/hrniels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrniels/subscriptions","organizations_url":"https://api.github.com/users/hrniels/orgs","repos_url":"https://api.github.com/users/hrniels/repos","events_url":"https://api.github.com/users/hrniels/events{/privacy}","received_events_url":"https://api.github.com/users/hrniels/received_events","type":"User","site_admin":false},"body":"Previously, Lychee simply stopped working if, e.g., our cookie\r\nexpired without letting the user know what went wrong. Now, the user\r\ngets redirected to the start page instead.\r\n\r\nThis happens if:\r\n\r\n1. viewing a private album/photo is denied in private mode\r\n2. the requested function on the server is not available for guests","created_at":"2016-08-20T09:54:14Z","updated_at":"2016-08-20T13:47:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82c96c9c5f525f454fc9d404705832f059777bab","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/electerious/Lychee/pulls/598/commits","review_comments_url":"https://api.github.com/repos/electerious/Lychee/pulls/598/comments","review_comment_url":"https://api.github.com/repos/electerious/Lychee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/electerious/Lychee/issues/598/comments","statuses_url":"https://api.github.com/repos/electerious/Lychee/statuses/21b2f587d5d5f7f6ba56b89ec04353db6175253f","head":{"label":"hrniels:logout","ref":"logout","sha":"21b2f587d5d5f7f6ba56b89ec04353db6175253f","user":{"login":"hrniels","id":185603,"avatar_url":"https://avatars.githubusercontent.com/u/185603?v=3","gravatar_id":"","url":"https://api.github.com/users/hrniels","html_url":"https://github.com/hrniels","followers_url":"https://api.github.com/users/hrniels/followers","following_url":"https://api.github.com/users/hrniels/following{/other_user}","gists_url":"https://api.github.com/users/hrniels/gists{/gist_id}","starred_url":"https://api.github.com/users/hrniels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrniels/subscriptions","organizations_url":"https://api.github.com/users/hrniels/orgs","repos_url":"https://api.github.com/users/hrniels/repos","events_url":"https://api.github.com/users/hrniels/events{/privacy}","received_events_url":"https://api.github.com/users/hrniels/received_events","type":"User","site_admin":false},"repo":{"id":64507893,"name":"Lychee","full_name":"hrniels/Lychee","owner":{"login":"hrniels","id":185603,"avatar_url":"https://avatars.githubusercontent.com/u/185603?v=3","gravatar_id":"","url":"https://api.github.com/users/hrniels","html_url":"https://github.com/hrniels","followers_url":"https://api.github.com/users/hrniels/followers","following_url":"https://api.github.com/users/hrniels/following{/other_user}","gists_url":"https://api.github.com/users/hrniels/gists{/gist_id}","starred_url":"https://api.github.com/users/hrniels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrniels/subscriptions","organizations_url":"https://api.github.com/users/hrniels/orgs","repos_url":"https://api.github.com/users/hrniels/repos","events_url":"https://api.github.com/users/hrniels/events{/privacy}","received_events_url":"https://api.github.com/users/hrniels/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hrniels/Lychee","description":"A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.","fork":true,"url":"https://api.github.com/repos/hrniels/Lychee","forks_url":"https://api.github.com/repos/hrniels/Lychee/forks","keys_url":"https://api.github.com/repos/hrniels/Lychee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hrniels/Lychee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hrniels/Lychee/teams","hooks_url":"https://api.github.com/repos/hrniels/Lychee/hooks","issue_events_url":"https://api.github.com/repos/hrniels/Lychee/issues/events{/number}","events_url":"https://api.github.com/repos/hrniels/Lychee/events","assignees_url":"https://api.github.com/repos/hrniels/Lychee/assignees{/user}","branches_url":"https://api.github.com/repos/hrniels/Lychee/branches{/branch}","tags_url":"https://api.github.com/repos/hrniels/Lychee/tags","blobs_url":"https://api.github.com/repos/hrniels/Lychee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hrniels/Lychee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hrniels/Lychee/git/refs{/sha}","trees_url":"https://api.github.com/repos/hrniels/Lychee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hrniels/Lychee/statuses/{sha}","languages_url":"https://api.github.com/repos/hrniels/Lychee/languages","stargazers_url":"https://api.github.com/repos/hrniels/Lychee/stargazers","contributors_url":"https://api.github.com/repos/hrniels/Lychee/contributors","subscribers_url":"https://api.github.com/repos/hrniels/Lychee/subscribers","subscription_url":"https://api.github.com/repos/hrniels/Lychee/subscription","commits_url":"https://api.github.com/repos/hrniels/Lychee/commits{/sha}","git_commits_url":"https://api.github.com/repos/hrniels/Lychee/git/commits{/sha}","comments_url":"https://api.github.com/repos/hrniels/Lychee/comments{/number}","issue_comment_url":"https://api.github.com/repos/hrniels/Lychee/issues/comments{/number}","contents_url":"https://api.github.com/repos/hrniels/Lychee/contents/{+path}","compare_url":"https://api.github.com/repos/hrniels/Lychee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hrniels/Lychee/merges","archive_url":"https://api.github.com/repos/hrniels/Lychee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hrniels/Lychee/downloads","issues_url":"https://api.github.com/repos/hrniels/Lychee/issues{/number}","pulls_url":"https://api.github.com/repos/hrniels/Lychee/pulls{/number}","milestones_url":"https://api.github.com/repos/hrniels/Lychee/milestones{/number}","notifications_url":"https://api.github.com/repos/hrniels/Lychee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hrniels/Lychee/labels{/name}","releases_url":"https://api.github.com/repos/hrniels/Lychee/releases{/id}","deployments_url":"https://api.github.com/repos/hrniels/Lychee/deployments","created_at":"2016-07-29T20:15:54Z","updated_at":"2016-07-29T20:15:56Z","pushed_at":"2016-08-20T09:52:27Z","git_url":"git://github.com/hrniels/Lychee.git","ssh_url":"git@github.com:hrniels/Lychee.git","clone_url":"https://github.com/hrniels/Lychee.git","svn_url":"https://github.com/hrniels/Lychee","homepage":"http://lychee.electerious.com","size":5540,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"electerious:develop","ref":"develop","sha":"6a1d38d0e9ff6b8889bc560f26d23d4d481f3b72","user":{"login":"electerious","id":499088,"avatar_url":"https://avatars.githubusercontent.com/u/499088?v=3","gravatar_id":"","url":"https://api.github.com/users/electerious","html_url":"https://github.com/electerious","followers_url":"https://api.github.com/users/electerious/followers","following_url":"https://api.github.com/users/electerious/following{/other_user}","gists_url":"https://api.github.com/users/electerious/gists{/gist_id}","starred_url":"https://api.github.com/users/electerious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electerious/subscriptions","organizations_url":"https://api.github.com/users/electerious/orgs","repos_url":"https://api.github.com/users/electerious/repos","events_url":"https://api.github.com/users/electerious/events{/privacy}","received_events_url":"https://api.github.com/users/electerious/received_events","type":"User","site_admin":false},"repo":{"id":6047189,"name":"Lychee","full_name":"electerious/Lychee","owner":{"login":"electerious","id":499088,"avatar_url":"https://avatars.githubusercontent.com/u/499088?v=3","gravatar_id":"","url":"https://api.github.com/users/electerious","html_url":"https://github.com/electerious","followers_url":"https://api.github.com/users/electerious/followers","following_url":"https://api.github.com/users/electerious/following{/other_user}","gists_url":"https://api.github.com/users/electerious/gists{/gist_id}","starred_url":"https://api.github.com/users/electerious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electerious/subscriptions","organizations_url":"https://api.github.com/users/electerious/orgs","repos_url":"https://api.github.com/users/electerious/repos","events_url":"https://api.github.com/users/electerious/events{/privacy}","received_events_url":"https://api.github.com/users/electerious/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/electerious/Lychee","description":"A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.","fork":false,"url":"https://api.github.com/repos/electerious/Lychee","forks_url":"https://api.github.com/repos/electerious/Lychee/forks","keys_url":"https://api.github.com/repos/electerious/Lychee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/electerious/Lychee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/electerious/Lychee/teams","hooks_url":"https://api.github.com/repos/electerious/Lychee/hooks","issue_events_url":"https://api.github.com/repos/electerious/Lychee/issues/events{/number}","events_url":"https://api.github.com/repos/electerious/Lychee/events","assignees_url":"https://api.github.com/repos/electerious/Lychee/assignees{/user}","branches_url":"https://api.github.com/repos/electerious/Lychee/branches{/branch}","tags_url":"https://api.github.com/repos/electerious/Lychee/tags","blobs_url":"https://api.github.com/repos/electerious/Lychee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/electerious/Lychee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/electerious/Lychee/git/refs{/sha}","trees_url":"https://api.github.com/repos/electerious/Lychee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/electerious/Lychee/statuses/{sha}","languages_url":"https://api.github.com/repos/electerious/Lychee/languages","stargazers_url":"https://api.github.com/repos/electerious/Lychee/stargazers","contributors_url":"https://api.github.com/repos/electerious/Lychee/contributors","subscribers_url":"https://api.github.com/repos/electerious/Lychee/subscribers","subscription_url":"https://api.github.com/repos/electerious/Lychee/subscription","commits_url":"https://api.github.com/repos/electerious/Lychee/commits{/sha}","git_commits_url":"https://api.github.com/repos/electerious/Lychee/git/commits{/sha}","comments_url":"https://api.github.com/repos/electerious/Lychee/comments{/number}","issue_comment_url":"https://api.github.com/repos/electerious/Lychee/issues/comments{/number}","contents_url":"https://api.github.com/repos/electerious/Lychee/contents/{+path}","compare_url":"https://api.github.com/repos/electerious/Lychee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/electerious/Lychee/merges","archive_url":"https://api.github.com/repos/electerious/Lychee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/electerious/Lychee/downloads","issues_url":"https://api.github.com/repos/electerious/Lychee/issues{/number}","pulls_url":"https://api.github.com/repos/electerious/Lychee/pulls{/number}","milestones_url":"https://api.github.com/repos/electerious/Lychee/milestones{/number}","notifications_url":"https://api.github.com/repos/electerious/Lychee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/electerious/Lychee/labels{/name}","releases_url":"https://api.github.com/repos/electerious/Lychee/releases{/id}","deployments_url":"https://api.github.com/repos/electerious/Lychee/deployments","created_at":"2012-10-02T15:42:56Z","updated_at":"2016-08-19T11:20:04Z","pushed_at":"2016-08-20T13:14:54Z","git_url":"git://github.com/electerious/Lychee.git","ssh_url":"git@github.com:electerious/Lychee.git","clone_url":"https://github.com/electerious/Lychee.git","svn_url":"https://github.com/electerious/Lychee","homepage":"http://lychee.electerious.com","size":7275,"stargazers_count":2958,"watchers_count":2958,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":360,"mirror_url":null,"open_issues_count":92,"forks":360,"open_issues":92,"watchers":2958,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/electerious/Lychee/pulls/598"},"html":{"href":"https://github.com/electerious/Lychee/pull/598"},"issue":{"href":"https://api.github.com/repos/electerious/Lychee/issues/598"},"comments":{"href":"https://api.github.com/repos/electerious/Lychee/issues/598/comments"},"review_comments":{"href":"https://api.github.com/repos/electerious/Lychee/pulls/598/comments"},"review_comment":{"href":"https://api.github.com/repos/electerious/Lychee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/electerious/Lychee/pulls/598/commits"},"statuses":{"href":"https://api.github.com/repos/electerious/Lychee/statuses/21b2f587d5d5f7f6ba56b89ec04353db6175253f"}}}}
{"actor":{"display_login":"electerious"}}