{"action":"created","comment":{"url":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/comments/185332301","pull_request_review_id":116699589,"id":185332301,"diff_hunk":"@@ -329,6 +331,17 @@ public function getTargetOfSub($host) {\n         if (isset($this->synonyms[$redirectUrl])) {\n             $redirectUrl = $this->synonyms[$redirectUrl];\n         }\n+        //moodle support; example: mgad.tum.sexy\n+        elseif (strlen($redirectUrl) > 1 && substr($redirectUrl, 0, 1) === 'm' && !isset($this->routes[$redirectUrl])){\n+            $tmp = substr($redirectUrl, 1);\n+            if (isset($this->synonyms[$tmp])) {","path":"redirect/routes.php","position":20,"original_position":20,"commit_id":"570ca9da4be3128177301635510594e82d350517","original_commit_id":"570ca9da4be3128177301635510594e82d350517","user":{"login":"kordianbruck","id":298860,"avatar_url":"https://avatars2.githubusercontent.com/u/298860?v=4","gravatar_id":"","url":"https://api.github.com/users/kordianbruck","html_url":"https://github.com/kordianbruck","followers_url":"https://api.github.com/users/kordianbruck/followers","following_url":"https://api.github.com/users/kordianbruck/following{/other_user}","gists_url":"https://api.github.com/users/kordianbruck/gists{/gist_id}","starred_url":"https://api.github.com/users/kordianbruck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kordianbruck/subscriptions","organizations_url":"https://api.github.com/users/kordianbruck/orgs","repos_url":"https://api.github.com/users/kordianbruck/repos","events_url":"https://api.github.com/users/kordianbruck/events{/privacy}","received_events_url":"https://api.github.com/users/kordianbruck/received_events","type":"User","site_admin":false},"body":"Would be nice to know in a comment, what your intentions are here... (\"Allow for synonyms as well in moodle redirects\")","created_at":"2018-05-01T20:58:19Z","updated_at":"2018-05-01T20:59:01Z","html_url":"https://github.com/mammuth/TUM.sexy/pull/135#discussion_r185332301","pull_request_url":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/135","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/comments/185332301"},"html":{"href":"https://github.com/mammuth/TUM.sexy/pull/135#discussion_r185332301"},"pull_request":{"href":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/135"}}},"pull_request":{"url":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/135","id":185181694,"html_url":"https://github.com/mammuth/TUM.sexy/pull/135","diff_url":"https://github.com/mammuth/TUM.sexy/pull/135.diff","patch_url":"https://github.com/mammuth/TUM.sexy/pull/135.patch","issue_url":"https://api.github.com/repos/mammuth/TUM.sexy/issues/135","number":135,"state":"open","locked":false,"title":"support for moodle links","user":{"login":"MW360","id":30387336,"avatar_url":"https://avatars1.githubusercontent.com/u/30387336?v=4","gravatar_id":"","url":"https://api.github.com/users/MW360","html_url":"https://github.com/MW360","followers_url":"https://api.github.com/users/MW360/followers","following_url":"https://api.github.com/users/MW360/following{/other_user}","gists_url":"https://api.github.com/users/MW360/gists{/gist_id}","starred_url":"https://api.github.com/users/MW360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MW360/subscriptions","organizations_url":"https://api.github.com/users/MW360/orgs","repos_url":"https://api.github.com/users/MW360/repos","events_url":"https://api.github.com/users/MW360/events{/privacy}","received_events_url":"https://api.github.com/users/MW360/received_events","type":"User","site_admin":false},"body":"Closes #134","created_at":"2018-05-01T13:47:17Z","updated_at":"2018-05-01T20:59:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b22f3b08cfc7a9fb61dc69fcdde94dc8307ba265","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/135/commits","review_comments_url":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/135/comments","review_comment_url":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mammuth/TUM.sexy/issues/135/comments","statuses_url":"https://api.github.com/repos/mammuth/TUM.sexy/statuses/570ca9da4be3128177301635510594e82d350517","head":{"label":"MW360:master","ref":"master","sha":"570ca9da4be3128177301635510594e82d350517","user":{"login":"MW360","id":30387336,"avatar_url":"https://avatars1.githubusercontent.com/u/30387336?v=4","gravatar_id":"","url":"https://api.github.com/users/MW360","html_url":"https://github.com/MW360","followers_url":"https://api.github.com/users/MW360/followers","following_url":"https://api.github.com/users/MW360/following{/other_user}","gists_url":"https://api.github.com/users/MW360/gists{/gist_id}","starred_url":"https://api.github.com/users/MW360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MW360/subscriptions","organizations_url":"https://api.github.com/users/MW360/orgs","repos_url":"https://api.github.com/users/MW360/repos","events_url":"https://api.github.com/users/MW360/events{/privacy}","received_events_url":"https://api.github.com/users/MW360/received_events","type":"User","site_admin":false},"repo":{"id":131482861,"name":"TUM.sexy","full_name":"MW360/TUM.sexy","owner":{"login":"MW360","id":30387336,"avatar_url":"https://avatars1.githubusercontent.com/u/30387336?v=4","gravatar_id":"","url":"https://api.github.com/users/MW360","html_url":"https://github.com/MW360","followers_url":"https://api.github.com/users/MW360/followers","following_url":"https://api.github.com/users/MW360/following{/other_user}","gists_url":"https://api.github.com/users/MW360/gists{/gist_id}","starred_url":"https://api.github.com/users/MW360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MW360/subscriptions","organizations_url":"https://api.github.com/users/MW360/orgs","repos_url":"https://api.github.com/users/MW360/repos","events_url":"https://api.github.com/users/MW360/events{/privacy}","received_events_url":"https://api.github.com/users/MW360/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MW360/TUM.sexy","description":"A website providing links, redirects and tools related to the Technical University Munich :dancer::books:","fork":true,"url":"https://api.github.com/repos/MW360/TUM.sexy","forks_url":"https://api.github.com/repos/MW360/TUM.sexy/forks","keys_url":"https://api.github.com/repos/MW360/TUM.sexy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MW360/TUM.sexy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MW360/TUM.sexy/teams","hooks_url":"https://api.github.com/repos/MW360/TUM.sexy/hooks","issue_events_url":"https://api.github.com/repos/MW360/TUM.sexy/issues/events{/number}","events_url":"https://api.github.com/repos/MW360/TUM.sexy/events","assignees_url":"https://api.github.com/repos/MW360/TUM.sexy/assignees{/user}","branches_url":"https://api.github.com/repos/MW360/TUM.sexy/branches{/branch}","tags_url":"https://api.github.com/repos/MW360/TUM.sexy/tags","blobs_url":"https://api.github.com/repos/MW360/TUM.sexy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MW360/TUM.sexy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MW360/TUM.sexy/git/refs{/sha}","trees_url":"https://api.github.com/repos/MW360/TUM.sexy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MW360/TUM.sexy/statuses/{sha}","languages_url":"https://api.github.com/repos/MW360/TUM.sexy/languages","stargazers_url":"https://api.github.com/repos/MW360/TUM.sexy/stargazers","contributors_url":"https://api.github.com/repos/MW360/TUM.sexy/contributors","subscribers_url":"https://api.github.com/repos/MW360/TUM.sexy/subscribers","subscription_url":"https://api.github.com/repos/MW360/TUM.sexy/subscription","commits_url":"https://api.github.com/repos/MW360/TUM.sexy/commits{/sha}","git_commits_url":"https://api.github.com/repos/MW360/TUM.sexy/git/commits{/sha}","comments_url":"https://api.github.com/repos/MW360/TUM.sexy/comments{/number}","issue_comment_url":"https://api.github.com/repos/MW360/TUM.sexy/issues/comments{/number}","contents_url":"https://api.github.com/repos/MW360/TUM.sexy/contents/{+path}","compare_url":"https://api.github.com/repos/MW360/TUM.sexy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MW360/TUM.sexy/merges","archive_url":"https://api.github.com/repos/MW360/TUM.sexy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MW360/TUM.sexy/downloads","issues_url":"https://api.github.com/repos/MW360/TUM.sexy/issues{/number}","pulls_url":"https://api.github.com/repos/MW360/TUM.sexy/pulls{/number}","milestones_url":"https://api.github.com/repos/MW360/TUM.sexy/milestones{/number}","notifications_url":"https://api.github.com/repos/MW360/TUM.sexy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MW360/TUM.sexy/labels{/name}","releases_url":"https://api.github.com/repos/MW360/TUM.sexy/releases{/id}","deployments_url":"https://api.github.com/repos/MW360/TUM.sexy/deployments","created_at":"2018-04-29T09:49:12Z","updated_at":"2018-05-01T20:54:29Z","pushed_at":"2018-05-01T20:54:28Z","git_url":"git://github.com/MW360/TUM.sexy.git","ssh_url":"git@github.com:MW360/TUM.sexy.git","clone_url":"https://github.com/MW360/TUM.sexy.git","svn_url":"https://github.com/MW360/TUM.sexy","homepage":"http://tum.sexy","size":6909,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mammuth:master","ref":"master","sha":"10947d86882ca2b7c0769a43fc0cf88356a24cbd","user":{"login":"mammuth","id":3121306,"avatar_url":"https://avatars1.githubusercontent.com/u/3121306?v=4","gravatar_id":"","url":"https://api.github.com/users/mammuth","html_url":"https://github.com/mammuth","followers_url":"https://api.github.com/users/mammuth/followers","following_url":"https://api.github.com/users/mammuth/following{/other_user}","gists_url":"https://api.github.com/users/mammuth/gists{/gist_id}","starred_url":"https://api.github.com/users/mammuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mammuth/subscriptions","organizations_url":"https://api.github.com/users/mammuth/orgs","repos_url":"https://api.github.com/users/mammuth/repos","events_url":"https://api.github.com/users/mammuth/events{/privacy}","received_events_url":"https://api.github.com/users/mammuth/received_events","type":"User","site_admin":false},"repo":{"id":28142840,"name":"TUM.sexy","full_name":"mammuth/TUM.sexy","owner":{"login":"mammuth","id":3121306,"avatar_url":"https://avatars1.githubusercontent.com/u/3121306?v=4","gravatar_id":"","url":"https://api.github.com/users/mammuth","html_url":"https://github.com/mammuth","followers_url":"https://api.github.com/users/mammuth/followers","following_url":"https://api.github.com/users/mammuth/following{/other_user}","gists_url":"https://api.github.com/users/mammuth/gists{/gist_id}","starred_url":"https://api.github.com/users/mammuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mammuth/subscriptions","organizations_url":"https://api.github.com/users/mammuth/orgs","repos_url":"https://api.github.com/users/mammuth/repos","events_url":"https://api.github.com/users/mammuth/events{/privacy}","received_events_url":"https://api.github.com/users/mammuth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mammuth/TUM.sexy","description":"A website providing links, redirects and tools related to the Technical University Munich :dancer::books:","fork":false,"url":"https://api.github.com/repos/mammuth/TUM.sexy","forks_url":"https://api.github.com/repos/mammuth/TUM.sexy/forks","keys_url":"https://api.github.com/repos/mammuth/TUM.sexy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mammuth/TUM.sexy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mammuth/TUM.sexy/teams","hooks_url":"https://api.github.com/repos/mammuth/TUM.sexy/hooks","issue_events_url":"https://api.github.com/repos/mammuth/TUM.sexy/issues/events{/number}","events_url":"https://api.github.com/repos/mammuth/TUM.sexy/events","assignees_url":"https://api.github.com/repos/mammuth/TUM.sexy/assignees{/user}","branches_url":"https://api.github.com/repos/mammuth/TUM.sexy/branches{/branch}","tags_url":"https://api.github.com/repos/mammuth/TUM.sexy/tags","blobs_url":"https://api.github.com/repos/mammuth/TUM.sexy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mammuth/TUM.sexy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mammuth/TUM.sexy/git/refs{/sha}","trees_url":"https://api.github.com/repos/mammuth/TUM.sexy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mammuth/TUM.sexy/statuses/{sha}","languages_url":"https://api.github.com/repos/mammuth/TUM.sexy/languages","stargazers_url":"https://api.github.com/repos/mammuth/TUM.sexy/stargazers","contributors_url":"https://api.github.com/repos/mammuth/TUM.sexy/contributors","subscribers_url":"https://api.github.com/repos/mammuth/TUM.sexy/subscribers","subscription_url":"https://api.github.com/repos/mammuth/TUM.sexy/subscription","commits_url":"https://api.github.com/repos/mammuth/TUM.sexy/commits{/sha}","git_commits_url":"https://api.github.com/repos/mammuth/TUM.sexy/git/commits{/sha}","comments_url":"https://api.github.com/repos/mammuth/TUM.sexy/comments{/number}","issue_comment_url":"https://api.github.com/repos/mammuth/TUM.sexy/issues/comments{/number}","contents_url":"https://api.github.com/repos/mammuth/TUM.sexy/contents/{+path}","compare_url":"https://api.github.com/repos/mammuth/TUM.sexy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mammuth/TUM.sexy/merges","archive_url":"https://api.github.com/repos/mammuth/TUM.sexy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mammuth/TUM.sexy/downloads","issues_url":"https://api.github.com/repos/mammuth/TUM.sexy/issues{/number}","pulls_url":"https://api.github.com/repos/mammuth/TUM.sexy/pulls{/number}","milestones_url":"https://api.github.com/repos/mammuth/TUM.sexy/milestones{/number}","notifications_url":"https://api.github.com/repos/mammuth/TUM.sexy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mammuth/TUM.sexy/labels{/name}","releases_url":"https://api.github.com/repos/mammuth/TUM.sexy/releases{/id}","deployments_url":"https://api.github.com/repos/mammuth/TUM.sexy/deployments","created_at":"2014-12-17T15:24:45Z","updated_at":"2018-04-30T11:06:52Z","pushed_at":"2018-05-01T20:54:28Z","git_url":"git://github.com/mammuth/TUM.sexy.git","ssh_url":"git@github.com:mammuth/TUM.sexy.git","clone_url":"https://github.com/mammuth/TUM.sexy.git","svn_url":"https://github.com/mammuth/TUM.sexy","homepage":"http://tum.sexy","size":6903,"stargazers_count":54,"watchers_count":54,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":35,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":35,"open_issues":8,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/135"},"html":{"href":"https://github.com/mammuth/TUM.sexy/pull/135"},"issue":{"href":"https://api.github.com/repos/mammuth/TUM.sexy/issues/135"},"comments":{"href":"https://api.github.com/repos/mammuth/TUM.sexy/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mammuth/TUM.sexy/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/mammuth/TUM.sexy/statuses/570ca9da4be3128177301635510594e82d350517"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kordianbruck"}}