{"action":"created","comment":{"url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/comments/37748390","id":37748390,"diff_hunk":"@@ -278,4 +292,53 @@ private function getRelation($content, $language)\n \n         return false;\n     }\n+\n+    /**\n+     * Returns author of the content.\n+     *\n+     * @param Content $contentValue\n+     * @param ContentType $contentType\n+     *\n+     * @return string\n+     */\n+    private function getAuthor(Content $contentValue, ContentType $contentType)\n+    {\n+        $author = $contentValue->getFieldValue($this->getFieldIdentifier('author', $contentType));\n+\n+        if (null === $author) {\n+            $user = $this->userService->loadUser($contentValue->contentInfo->ownerId);","path":"Rest/Controller/ContentController.php","position":null,"original_position":99,"commit_id":"1135badb3117ec98d717a98c23960fd4fd0229f3","original_commit_id":"5751eece57d02ad169847a5046a57fc344f2a74d","user":{"login":"kamilmusial","id":3974074,"avatar_url":"https://avatars.githubusercontent.com/u/3974074?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilmusial","html_url":"https://github.com/kamilmusial","followers_url":"https://api.github.com/users/kamilmusial/followers","following_url":"https://api.github.com/users/kamilmusial/following{/other_user}","gists_url":"https://api.github.com/users/kamilmusial/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilmusial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilmusial/subscriptions","organizations_url":"https://api.github.com/users/kamilmusial/orgs","repos_url":"https://api.github.com/users/kamilmusial/repos","events_url":"https://api.github.com/users/kamilmusial/events{/privacy}","received_events_url":"https://api.github.com/users/kamilmusial/received_events","type":"User","site_admin":false},"body":"I didn't know that user can be treated like other content values. Fixed, thanks.","created_at":"2015-08-24T13:06:42Z","updated_at":"2015-08-24T13:06:42Z","html_url":"https://github.com/ezsystems/EzSystemsRecommendationBundle/pull/26#discussion_r37748390","pull_request_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/comments/37748390"},"html":{"href":"https://github.com/ezsystems/EzSystemsRecommendationBundle/pull/26#discussion_r37748390"},"pull_request":{"href":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/26","id":43152848,"html_url":"https://github.com/ezsystems/EzSystemsRecommendationBundle/pull/26","diff_url":"https://github.com/ezsystems/EzSystemsRecommendationBundle/pull/26.diff","patch_url":"https://github.com/ezsystems/EzSystemsRecommendationBundle/pull/26.patch","issue_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/issues/26","number":26,"state":"open","locked":false,"title":"proper value for author field","user":{"login":"kamilmusial","id":3974074,"avatar_url":"https://avatars.githubusercontent.com/u/3974074?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilmusial","html_url":"https://github.com/kamilmusial","followers_url":"https://api.github.com/users/kamilmusial/followers","following_url":"https://api.github.com/users/kamilmusial/following{/other_user}","gists_url":"https://api.github.com/users/kamilmusial/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilmusial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilmusial/subscriptions","organizations_url":"https://api.github.com/users/kamilmusial/orgs","repos_url":"https://api.github.com/users/kamilmusial/repos","events_url":"https://api.github.com/users/kamilmusial/events{/privacy}","received_events_url":"https://api.github.com/users/kamilmusial/received_events","type":"User","site_admin":false},"body":"Fixed author field, now shows string.\r\n\r\nPing @lserwatka ","created_at":"2015-08-24T08:57:44Z","updated_at":"2015-08-24T13:06:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9672b240fa8bdea514da586e3280d3b4c9d9221","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/26/commits","review_comments_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/26/comments","review_comment_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/issues/26/comments","statuses_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/statuses/1135badb3117ec98d717a98c23960fd4fd0229f3","head":{"label":"kamilmusial:author_value","ref":"author_value","sha":"1135badb3117ec98d717a98c23960fd4fd0229f3","user":{"login":"kamilmusial","id":3974074,"avatar_url":"https://avatars.githubusercontent.com/u/3974074?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilmusial","html_url":"https://github.com/kamilmusial","followers_url":"https://api.github.com/users/kamilmusial/followers","following_url":"https://api.github.com/users/kamilmusial/following{/other_user}","gists_url":"https://api.github.com/users/kamilmusial/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilmusial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilmusial/subscriptions","organizations_url":"https://api.github.com/users/kamilmusial/orgs","repos_url":"https://api.github.com/users/kamilmusial/repos","events_url":"https://api.github.com/users/kamilmusial/events{/privacy}","received_events_url":"https://api.github.com/users/kamilmusial/received_events","type":"User","site_admin":false},"repo":{"id":40484361,"name":"EzSystemsRecommendationBundle","full_name":"kamilmusial/EzSystemsRecommendationBundle","owner":{"login":"kamilmusial","id":3974074,"avatar_url":"https://avatars.githubusercontent.com/u/3974074?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilmusial","html_url":"https://github.com/kamilmusial","followers_url":"https://api.github.com/users/kamilmusial/followers","following_url":"https://api.github.com/users/kamilmusial/following{/other_user}","gists_url":"https://api.github.com/users/kamilmusial/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilmusial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilmusial/subscriptions","organizations_url":"https://api.github.com/users/kamilmusial/orgs","repos_url":"https://api.github.com/users/kamilmusial/repos","events_url":"https://api.github.com/users/kamilmusial/events{/privacy}","received_events_url":"https://api.github.com/users/kamilmusial/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kamilmusial/EzSystemsRecommendationBundle","description":"Integration of YooChoose, a content recommendation solution, into eZ Platform","fork":true,"url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle","forks_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/forks","keys_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/teams","hooks_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/hooks","issue_events_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/issues/events{/number}","events_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/events","assignees_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/assignees{/user}","branches_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/branches{/branch}","tags_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/tags","blobs_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/languages","stargazers_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/stargazers","contributors_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/contributors","subscribers_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/subscribers","subscription_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/subscription","commits_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/contents/{+path}","compare_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/merges","archive_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/downloads","issues_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/issues{/number}","pulls_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/labels{/name}","releases_url":"https://api.github.com/repos/kamilmusial/EzSystemsRecommendationBundle/releases{/id}","created_at":"2015-08-10T13:35:33Z","updated_at":"2015-08-10T13:35:33Z","pushed_at":"2015-08-24T13:05:57Z","git_url":"git://github.com/kamilmusial/EzSystemsRecommendationBundle.git","ssh_url":"git@github.com:kamilmusial/EzSystemsRecommendationBundle.git","clone_url":"https://github.com/kamilmusial/EzSystemsRecommendationBundle.git","svn_url":"https://github.com/kamilmusial/EzSystemsRecommendationBundle","homepage":null,"size":152,"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":"ezsystems:master","ref":"master","sha":"5774d5db73369db1f8c4385f41833a0cb23d88af","user":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"repo":{"id":27641523,"name":"EzSystemsRecommendationBundle","full_name":"ezsystems/EzSystemsRecommendationBundle","owner":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ezsystems/EzSystemsRecommendationBundle","description":"Integration of YooChoose, a content recommendation solution, into eZ Platform","fork":false,"url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle","forks_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/forks","keys_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/teams","hooks_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/hooks","issue_events_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/issues/events{/number}","events_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/events","assignees_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/assignees{/user}","branches_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/branches{/branch}","tags_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/tags","blobs_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/languages","stargazers_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/stargazers","contributors_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/contributors","subscribers_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/subscribers","subscription_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/subscription","commits_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/contents/{+path}","compare_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/merges","archive_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/downloads","issues_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/issues{/number}","pulls_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/labels{/name}","releases_url":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/releases{/id}","created_at":"2014-12-06T16:56:48Z","updated_at":"2015-07-20T14:08:30Z","pushed_at":"2015-08-24T13:05:57Z","git_url":"git://github.com/ezsystems/EzSystemsRecommendationBundle.git","ssh_url":"git@github.com:ezsystems/EzSystemsRecommendationBundle.git","clone_url":"https://github.com/ezsystems/EzSystemsRecommendationBundle.git","svn_url":"https://github.com/ezsystems/EzSystemsRecommendationBundle","homepage":null,"size":680,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/26"},"html":{"href":"https://github.com/ezsystems/EzSystemsRecommendationBundle/pull/26"},"issue":{"href":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/issues/26"},"comments":{"href":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/ezsystems/EzSystemsRecommendationBundle/statuses/1135badb3117ec98d717a98c23960fd4fd0229f3"}}}}