{"action":"created","comment":{"url":"https://api.github.com/repos/nextcloud/server/pulls/comments/97354557","pull_request_review_id":17961029,"id":97354557,"diff_hunk":"@@ -167,6 +167,12 @@ public function detectPath($path) {\n \t\t$this->loadMappings();\n \n \t\t$fileName = basename($path);\n+\n+\t\t// remove leading dot on hidden files with a file extension\n+\t\tif (strpos($fileName, '.') === 0 && strpos($fileName, '.', 1)) {","path":"lib/private/Files/Type/Detection.php","position":null,"original_position":6,"commit_id":"3d99ec6832093652868f0dc0420d9d616f5e5310","original_commit_id":"eadc1ac6378995beb17c983729127b8bdf1b122a","user":{"login":"mwalbeck","id":19759293,"avatar_url":"https://avatars.githubusercontent.com/u/19759293?v=3","gravatar_id":"","url":"https://api.github.com/users/mwalbeck","html_url":"https://github.com/mwalbeck","followers_url":"https://api.github.com/users/mwalbeck/followers","following_url":"https://api.github.com/users/mwalbeck/following{/other_user}","gists_url":"https://api.github.com/users/mwalbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/mwalbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwalbeck/subscriptions","organizations_url":"https://api.github.com/users/mwalbeck/orgs","repos_url":"https://api.github.com/users/mwalbeck/repos","events_url":"https://api.github.com/users/mwalbeck/events{/privacy}","received_events_url":"https://api.github.com/users/mwalbeck/received_events","type":"User","site_admin":false},"body":"Fixed, thanks","created_at":"2017-01-23T16:20:00Z","updated_at":"2017-01-23T16:20:00Z","html_url":"https://github.com/nextcloud/server/pull/3212#discussion_r97354557","pull_request_url":"https://api.github.com/repos/nextcloud/server/pulls/3212","_links":{"self":{"href":"https://api.github.com/repos/nextcloud/server/pulls/comments/97354557"},"html":{"href":"https://github.com/nextcloud/server/pull/3212#discussion_r97354557"},"pull_request":{"href":"https://api.github.com/repos/nextcloud/server/pulls/3212"}}},"pull_request":{"url":"https://api.github.com/repos/nextcloud/server/pulls/3212","id":102718036,"html_url":"https://github.com/nextcloud/server/pull/3212","diff_url":"https://github.com/nextcloud/server/pull/3212.diff","patch_url":"https://github.com/nextcloud/server/pull/3212.patch","issue_url":"https://api.github.com/repos/nextcloud/server/issues/3212","number":3212,"state":"open","locked":false,"title":"Mimetype detection for hidden files","user":{"login":"mwalbeck","id":19759293,"avatar_url":"https://avatars.githubusercontent.com/u/19759293?v=3","gravatar_id":"","url":"https://api.github.com/users/mwalbeck","html_url":"https://github.com/mwalbeck","followers_url":"https://api.github.com/users/mwalbeck/followers","following_url":"https://api.github.com/users/mwalbeck/following{/other_user}","gists_url":"https://api.github.com/users/mwalbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/mwalbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwalbeck/subscriptions","organizations_url":"https://api.github.com/users/mwalbeck/orgs","repos_url":"https://api.github.com/users/mwalbeck/repos","events_url":"https://api.github.com/users/mwalbeck/events{/privacy}","received_events_url":"https://api.github.com/users/mwalbeck/received_events","type":"User","site_admin":false},"body":"For #3183 \r\n\r\nWould this work?","created_at":"2017-01-23T13:25:40Z","updated_at":"2017-01-23T16:20:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d276c24f83e700d5f79f5fd19370205e9a1c7d1a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nextcloud/server/pulls/3212/commits","review_comments_url":"https://api.github.com/repos/nextcloud/server/pulls/3212/comments","review_comment_url":"https://api.github.com/repos/nextcloud/server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/3212/comments","statuses_url":"https://api.github.com/repos/nextcloud/server/statuses/3d99ec6832093652868f0dc0420d9d616f5e5310","head":{"label":"mwalbeck:mimetype-hidden-files","ref":"mimetype-hidden-files","sha":"3d99ec6832093652868f0dc0420d9d616f5e5310","user":{"login":"mwalbeck","id":19759293,"avatar_url":"https://avatars.githubusercontent.com/u/19759293?v=3","gravatar_id":"","url":"https://api.github.com/users/mwalbeck","html_url":"https://github.com/mwalbeck","followers_url":"https://api.github.com/users/mwalbeck/followers","following_url":"https://api.github.com/users/mwalbeck/following{/other_user}","gists_url":"https://api.github.com/users/mwalbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/mwalbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwalbeck/subscriptions","organizations_url":"https://api.github.com/users/mwalbeck/orgs","repos_url":"https://api.github.com/users/mwalbeck/repos","events_url":"https://api.github.com/users/mwalbeck/events{/privacy}","received_events_url":"https://api.github.com/users/mwalbeck/received_events","type":"User","site_admin":false},"repo":{"id":79571451,"name":"server","full_name":"mwalbeck/server","owner":{"login":"mwalbeck","id":19759293,"avatar_url":"https://avatars.githubusercontent.com/u/19759293?v=3","gravatar_id":"","url":"https://api.github.com/users/mwalbeck","html_url":"https://github.com/mwalbeck","followers_url":"https://api.github.com/users/mwalbeck/followers","following_url":"https://api.github.com/users/mwalbeck/following{/other_user}","gists_url":"https://api.github.com/users/mwalbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/mwalbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwalbeck/subscriptions","organizations_url":"https://api.github.com/users/mwalbeck/orgs","repos_url":"https://api.github.com/users/mwalbeck/repos","events_url":"https://api.github.com/users/mwalbeck/events{/privacy}","received_events_url":"https://api.github.com/users/mwalbeck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mwalbeck/server","description":"☁️ Nextcloud server","fork":true,"url":"https://api.github.com/repos/mwalbeck/server","forks_url":"https://api.github.com/repos/mwalbeck/server/forks","keys_url":"https://api.github.com/repos/mwalbeck/server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwalbeck/server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwalbeck/server/teams","hooks_url":"https://api.github.com/repos/mwalbeck/server/hooks","issue_events_url":"https://api.github.com/repos/mwalbeck/server/issues/events{/number}","events_url":"https://api.github.com/repos/mwalbeck/server/events","assignees_url":"https://api.github.com/repos/mwalbeck/server/assignees{/user}","branches_url":"https://api.github.com/repos/mwalbeck/server/branches{/branch}","tags_url":"https://api.github.com/repos/mwalbeck/server/tags","blobs_url":"https://api.github.com/repos/mwalbeck/server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwalbeck/server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwalbeck/server/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwalbeck/server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwalbeck/server/statuses/{sha}","languages_url":"https://api.github.com/repos/mwalbeck/server/languages","stargazers_url":"https://api.github.com/repos/mwalbeck/server/stargazers","contributors_url":"https://api.github.com/repos/mwalbeck/server/contributors","subscribers_url":"https://api.github.com/repos/mwalbeck/server/subscribers","subscription_url":"https://api.github.com/repos/mwalbeck/server/subscription","commits_url":"https://api.github.com/repos/mwalbeck/server/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwalbeck/server/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwalbeck/server/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwalbeck/server/issues/comments{/number}","contents_url":"https://api.github.com/repos/mwalbeck/server/contents/{+path}","compare_url":"https://api.github.com/repos/mwalbeck/server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwalbeck/server/merges","archive_url":"https://api.github.com/repos/mwalbeck/server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwalbeck/server/downloads","issues_url":"https://api.github.com/repos/mwalbeck/server/issues{/number}","pulls_url":"https://api.github.com/repos/mwalbeck/server/pulls{/number}","milestones_url":"https://api.github.com/repos/mwalbeck/server/milestones{/number}","notifications_url":"https://api.github.com/repos/mwalbeck/server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwalbeck/server/labels{/name}","releases_url":"https://api.github.com/repos/mwalbeck/server/releases{/id}","deployments_url":"https://api.github.com/repos/mwalbeck/server/deployments","created_at":"2017-01-20T15:36:57Z","updated_at":"2017-01-20T15:37:14Z","pushed_at":"2017-01-23T16:15:32Z","git_url":"git://github.com/mwalbeck/server.git","ssh_url":"git@github.com:mwalbeck/server.git","clone_url":"https://github.com/mwalbeck/server.git","svn_url":"https://github.com/mwalbeck/server","homepage":"https://nextcloud.com","size":227257,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"nextcloud:master","ref":"master","sha":"5d486478d3d6d316b1895ea440a05f31488e2f9f","user":{"login":"nextcloud","id":19211038,"avatar_url":"https://avatars.githubusercontent.com/u/19211038?v=3","gravatar_id":"","url":"https://api.github.com/users/nextcloud","html_url":"https://github.com/nextcloud","followers_url":"https://api.github.com/users/nextcloud/followers","following_url":"https://api.github.com/users/nextcloud/following{/other_user}","gists_url":"https://api.github.com/users/nextcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/nextcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextcloud/subscriptions","organizations_url":"https://api.github.com/users/nextcloud/orgs","repos_url":"https://api.github.com/users/nextcloud/repos","events_url":"https://api.github.com/users/nextcloud/events{/privacy}","received_events_url":"https://api.github.com/users/nextcloud/received_events","type":"Organization","site_admin":false},"repo":{"id":60243197,"name":"server","full_name":"nextcloud/server","owner":{"login":"nextcloud","id":19211038,"avatar_url":"https://avatars.githubusercontent.com/u/19211038?v=3","gravatar_id":"","url":"https://api.github.com/users/nextcloud","html_url":"https://github.com/nextcloud","followers_url":"https://api.github.com/users/nextcloud/followers","following_url":"https://api.github.com/users/nextcloud/following{/other_user}","gists_url":"https://api.github.com/users/nextcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/nextcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextcloud/subscriptions","organizations_url":"https://api.github.com/users/nextcloud/orgs","repos_url":"https://api.github.com/users/nextcloud/repos","events_url":"https://api.github.com/users/nextcloud/events{/privacy}","received_events_url":"https://api.github.com/users/nextcloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nextcloud/server","description":"☁️ Nextcloud server","fork":false,"url":"https://api.github.com/repos/nextcloud/server","forks_url":"https://api.github.com/repos/nextcloud/server/forks","keys_url":"https://api.github.com/repos/nextcloud/server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nextcloud/server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nextcloud/server/teams","hooks_url":"https://api.github.com/repos/nextcloud/server/hooks","issue_events_url":"https://api.github.com/repos/nextcloud/server/issues/events{/number}","events_url":"https://api.github.com/repos/nextcloud/server/events","assignees_url":"https://api.github.com/repos/nextcloud/server/assignees{/user}","branches_url":"https://api.github.com/repos/nextcloud/server/branches{/branch}","tags_url":"https://api.github.com/repos/nextcloud/server/tags","blobs_url":"https://api.github.com/repos/nextcloud/server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nextcloud/server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nextcloud/server/git/refs{/sha}","trees_url":"https://api.github.com/repos/nextcloud/server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nextcloud/server/statuses/{sha}","languages_url":"https://api.github.com/repos/nextcloud/server/languages","stargazers_url":"https://api.github.com/repos/nextcloud/server/stargazers","contributors_url":"https://api.github.com/repos/nextcloud/server/contributors","subscribers_url":"https://api.github.com/repos/nextcloud/server/subscribers","subscription_url":"https://api.github.com/repos/nextcloud/server/subscription","commits_url":"https://api.github.com/repos/nextcloud/server/commits{/sha}","git_commits_url":"https://api.github.com/repos/nextcloud/server/git/commits{/sha}","comments_url":"https://api.github.com/repos/nextcloud/server/comments{/number}","issue_comment_url":"https://api.github.com/repos/nextcloud/server/issues/comments{/number}","contents_url":"https://api.github.com/repos/nextcloud/server/contents/{+path}","compare_url":"https://api.github.com/repos/nextcloud/server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nextcloud/server/merges","archive_url":"https://api.github.com/repos/nextcloud/server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nextcloud/server/downloads","issues_url":"https://api.github.com/repos/nextcloud/server/issues{/number}","pulls_url":"https://api.github.com/repos/nextcloud/server/pulls{/number}","milestones_url":"https://api.github.com/repos/nextcloud/server/milestones{/number}","notifications_url":"https://api.github.com/repos/nextcloud/server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nextcloud/server/labels{/name}","releases_url":"https://api.github.com/repos/nextcloud/server/releases{/id}","deployments_url":"https://api.github.com/repos/nextcloud/server/deployments","created_at":"2016-06-02T07:44:14Z","updated_at":"2017-01-23T16:18:48Z","pushed_at":"2017-01-23T16:15:33Z","git_url":"git://github.com/nextcloud/server.git","ssh_url":"git@github.com:nextcloud/server.git","clone_url":"https://github.com/nextcloud/server.git","svn_url":"https://github.com/nextcloud/server","homepage":"https://nextcloud.com","size":228046,"stargazers_count":1263,"watchers_count":1263,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":195,"mirror_url":null,"open_issues_count":628,"forks":195,"open_issues":628,"watchers":1263,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nextcloud/server/pulls/3212"},"html":{"href":"https://github.com/nextcloud/server/pull/3212"},"issue":{"href":"https://api.github.com/repos/nextcloud/server/issues/3212"},"comments":{"href":"https://api.github.com/repos/nextcloud/server/issues/3212/comments"},"review_comments":{"href":"https://api.github.com/repos/nextcloud/server/pulls/3212/comments"},"review_comment":{"href":"https://api.github.com/repos/nextcloud/server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nextcloud/server/pulls/3212/commits"},"statuses":{"href":"https://api.github.com/repos/nextcloud/server/statuses/3d99ec6832093652868f0dc0420d9d616f5e5310"}}}}
{"actor":{"display_login":"mwalbeck"}}