{"action":"created","comment":{"url":"https://api.github.com/repos/TryGhost/Ghost/pulls/comments/221470877","pull_request_review_id":160126011,"id":221470877,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTQ3MDg3Nw==","diff_hunk":"@@ -0,0 +1,70 @@\n+const urlService = require('../../../services/url');\n+const {urlFor, makeAbsoluteUrls} = require('../../../services/url/utils');\n+\n+const urlsForPost = (post, options) => {\n+    post.url = urlService.getUrlByResourceId(post.id);\n+\n+    if (options.columns && !options.columns.includes('url')) {","path":"core/server/api/v0.1/decorators/urls.js","position":7,"original_position":7,"commit_id":"1deba6afd96829e0b8c62da1b8fbc0ed864c3000","original_commit_id":"1deba6afd96829e0b8c62da1b8fbc0ed864c3000","user":{"login":"kirrg001","id":1160712,"node_id":"MDQ6VXNlcjExNjA3MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1160712?v=4","gravatar_id":"","url":"https://api.github.com/users/kirrg001","html_url":"https://github.com/kirrg001","followers_url":"https://api.github.com/users/kirrg001/followers","following_url":"https://api.github.com/users/kirrg001/following{/other_user}","gists_url":"https://api.github.com/users/kirrg001/gists{/gist_id}","starred_url":"https://api.github.com/users/kirrg001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirrg001/subscriptions","organizations_url":"https://api.github.com/users/kirrg001/orgs","repos_url":"https://api.github.com/users/kirrg001/repos","events_url":"https://api.github.com/users/kirrg001/events{/privacy}","received_events_url":"https://api.github.com/users/kirrg001/received_events","type":"User","site_admin":false},"body":"It's correct.\r\n\r\nIf you ask for `?columns=title`, you only want the title.","created_at":"2018-09-30T19:45:38Z","updated_at":"2018-09-30T19:45:38Z","html_url":"https://github.com/TryGhost/Ghost/pull/9917#discussion_r221470877","pull_request_url":"https://api.github.com/repos/TryGhost/Ghost/pulls/9917","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/TryGhost/Ghost/pulls/comments/221470877"},"html":{"href":"https://github.com/TryGhost/Ghost/pull/9917#discussion_r221470877"},"pull_request":{"href":"https://api.github.com/repos/TryGhost/Ghost/pulls/9917"}},"in_reply_to_id":221439495},"pull_request":{"url":"https://api.github.com/repos/TryGhost/Ghost/pulls/9917","id":218626402,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4NjI2NDAy","html_url":"https://github.com/TryGhost/Ghost/pull/9917","diff_url":"https://github.com/TryGhost/Ghost/pull/9917.diff","patch_url":"https://github.com/TryGhost/Ghost/pull/9917.patch","issue_url":"https://api.github.com/repos/TryGhost/Ghost/issues/9917","number":9917,"state":"open","locked":false,"title":"[WIP] Refactor url generation from models","user":{"login":"gargol","id":675397,"node_id":"MDQ6VXNlcjY3NTM5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/675397?v=4","gravatar_id":"","url":"https://api.github.com/users/gargol","html_url":"https://github.com/gargol","followers_url":"https://api.github.com/users/gargol/followers","following_url":"https://api.github.com/users/gargol/following{/other_user}","gists_url":"https://api.github.com/users/gargol/gists{/gist_id}","starred_url":"https://api.github.com/users/gargol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gargol/subscriptions","organizations_url":"https://api.github.com/users/gargol/orgs","repos_url":"https://api.github.com/users/gargol/repos","events_url":"https://api.github.com/users/gargol/events{/privacy}","received_events_url":"https://api.github.com/users/gargol/received_events","type":"User","site_admin":false},"body":"Moved URL attributes logic into API layer \r\n\r\nrefs #9866\r\n\r\n- Moved URL related attribute calculation for posts, users, and tags into API layer","created_at":"2018-09-27T12:03:33Z","updated_at":"2018-09-30T19:45:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6036ba1f8733f1da32d24d938974d354fc260ad","assignee":{"login":"kirrg001","id":1160712,"node_id":"MDQ6VXNlcjExNjA3MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1160712?v=4","gravatar_id":"","url":"https://api.github.com/users/kirrg001","html_url":"https://github.com/kirrg001","followers_url":"https://api.github.com/users/kirrg001/followers","following_url":"https://api.github.com/users/kirrg001/following{/other_user}","gists_url":"https://api.github.com/users/kirrg001/gists{/gist_id}","starred_url":"https://api.github.com/users/kirrg001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirrg001/subscriptions","organizations_url":"https://api.github.com/users/kirrg001/orgs","repos_url":"https://api.github.com/users/kirrg001/repos","events_url":"https://api.github.com/users/kirrg001/events{/privacy}","received_events_url":"https://api.github.com/users/kirrg001/received_events","type":"User","site_admin":false},"assignees":[{"login":"kirrg001","id":1160712,"node_id":"MDQ6VXNlcjExNjA3MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1160712?v=4","gravatar_id":"","url":"https://api.github.com/users/kirrg001","html_url":"https://github.com/kirrg001","followers_url":"https://api.github.com/users/kirrg001/followers","following_url":"https://api.github.com/users/kirrg001/following{/other_user}","gists_url":"https://api.github.com/users/kirrg001/gists{/gist_id}","starred_url":"https://api.github.com/users/kirrg001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirrg001/subscriptions","organizations_url":"https://api.github.com/users/kirrg001/orgs","repos_url":"https://api.github.com/users/kirrg001/repos","events_url":"https://api.github.com/users/kirrg001/events{/privacy}","received_events_url":"https://api.github.com/users/kirrg001/received_events","type":"User","site_admin":false},{"login":"rishabhgrg","id":3461456,"node_id":"MDQ6VXNlcjM0NjE0NTY=","avatar_url":"https://avatars0.githubusercontent.com/u/3461456?v=4","gravatar_id":"","url":"https://api.github.com/users/rishabhgrg","html_url":"https://github.com/rishabhgrg","followers_url":"https://api.github.com/users/rishabhgrg/followers","following_url":"https://api.github.com/users/rishabhgrg/following{/other_user}","gists_url":"https://api.github.com/users/rishabhgrg/gists{/gist_id}","starred_url":"https://api.github.com/users/rishabhgrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rishabhgrg/subscriptions","organizations_url":"https://api.github.com/users/rishabhgrg/orgs","repos_url":"https://api.github.com/users/rishabhgrg/repos","events_url":"https://api.github.com/users/rishabhgrg/events{/privacy}","received_events_url":"https://api.github.com/users/rishabhgrg/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"kirrg001","id":1160712,"node_id":"MDQ6VXNlcjExNjA3MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1160712?v=4","gravatar_id":"","url":"https://api.github.com/users/kirrg001","html_url":"https://github.com/kirrg001","followers_url":"https://api.github.com/users/kirrg001/followers","following_url":"https://api.github.com/users/kirrg001/following{/other_user}","gists_url":"https://api.github.com/users/kirrg001/gists{/gist_id}","starred_url":"https://api.github.com/users/kirrg001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirrg001/subscriptions","organizations_url":"https://api.github.com/users/kirrg001/orgs","repos_url":"https://api.github.com/users/kirrg001/repos","events_url":"https://api.github.com/users/kirrg001/events{/privacy}","received_events_url":"https://api.github.com/users/kirrg001/received_events","type":"User","site_admin":false},{"login":"rishabhgrg","id":3461456,"node_id":"MDQ6VXNlcjM0NjE0NTY=","avatar_url":"https://avatars0.githubusercontent.com/u/3461456?v=4","gravatar_id":"","url":"https://api.github.com/users/rishabhgrg","html_url":"https://github.com/rishabhgrg","followers_url":"https://api.github.com/users/rishabhgrg/followers","following_url":"https://api.github.com/users/rishabhgrg/following{/other_user}","gists_url":"https://api.github.com/users/rishabhgrg/gists{/gist_id}","starred_url":"https://api.github.com/users/rishabhgrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rishabhgrg/subscriptions","organizations_url":"https://api.github.com/users/rishabhgrg/orgs","repos_url":"https://api.github.com/users/rishabhgrg/repos","events_url":"https://api.github.com/users/rishabhgrg/events{/privacy}","received_events_url":"https://api.github.com/users/rishabhgrg/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":82886231,"node_id":"MDU6TGFiZWw4Mjg4NjIzMQ==","url":"https://api.github.com/repos/TryGhost/Ghost/labels/api","name":"api","color":"FA18A8","default":false},{"id":687043190,"node_id":"MDU6TGFiZWw2ODcwNDMxOTA=","url":"https://api.github.com/repos/TryGhost/Ghost/labels/refactoring/cleanup","name":"refactoring/cleanup","color":"1d76db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/TryGhost/Ghost/pulls/9917/commits","review_comments_url":"https://api.github.com/repos/TryGhost/Ghost/pulls/9917/comments","review_comment_url":"https://api.github.com/repos/TryGhost/Ghost/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/9917/comments","statuses_url":"https://api.github.com/repos/TryGhost/Ghost/statuses/1deba6afd96829e0b8c62da1b8fbc0ed864c3000","head":{"label":"gargol:refactor-url-generation-form-models","ref":"refactor-url-generation-form-models","sha":"1deba6afd96829e0b8c62da1b8fbc0ed864c3000","user":{"login":"gargol","id":675397,"node_id":"MDQ6VXNlcjY3NTM5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/675397?v=4","gravatar_id":"","url":"https://api.github.com/users/gargol","html_url":"https://github.com/gargol","followers_url":"https://api.github.com/users/gargol/followers","following_url":"https://api.github.com/users/gargol/following{/other_user}","gists_url":"https://api.github.com/users/gargol/gists{/gist_id}","starred_url":"https://api.github.com/users/gargol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gargol/subscriptions","organizations_url":"https://api.github.com/users/gargol/orgs","repos_url":"https://api.github.com/users/gargol/repos","events_url":"https://api.github.com/users/gargol/events{/privacy}","received_events_url":"https://api.github.com/users/gargol/received_events","type":"User","site_admin":false},"repo":{"id":22947893,"node_id":"MDEwOlJlcG9zaXRvcnkyMjk0Nzg5Mw==","name":"Ghost","full_name":"gargol/Ghost","private":false,"owner":{"login":"gargol","id":675397,"node_id":"MDQ6VXNlcjY3NTM5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/675397?v=4","gravatar_id":"","url":"https://api.github.com/users/gargol","html_url":"https://github.com/gargol","followers_url":"https://api.github.com/users/gargol/followers","following_url":"https://api.github.com/users/gargol/following{/other_user}","gists_url":"https://api.github.com/users/gargol/gists{/gist_id}","starred_url":"https://api.github.com/users/gargol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gargol/subscriptions","organizations_url":"https://api.github.com/users/gargol/orgs","repos_url":"https://api.github.com/users/gargol/repos","events_url":"https://api.github.com/users/gargol/events{/privacy}","received_events_url":"https://api.github.com/users/gargol/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gargol/Ghost","description":"Just a blogging platform","fork":true,"url":"https://api.github.com/repos/gargol/Ghost","forks_url":"https://api.github.com/repos/gargol/Ghost/forks","keys_url":"https://api.github.com/repos/gargol/Ghost/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gargol/Ghost/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gargol/Ghost/teams","hooks_url":"https://api.github.com/repos/gargol/Ghost/hooks","issue_events_url":"https://api.github.com/repos/gargol/Ghost/issues/events{/number}","events_url":"https://api.github.com/repos/gargol/Ghost/events","assignees_url":"https://api.github.com/repos/gargol/Ghost/assignees{/user}","branches_url":"https://api.github.com/repos/gargol/Ghost/branches{/branch}","tags_url":"https://api.github.com/repos/gargol/Ghost/tags","blobs_url":"https://api.github.com/repos/gargol/Ghost/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gargol/Ghost/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gargol/Ghost/git/refs{/sha}","trees_url":"https://api.github.com/repos/gargol/Ghost/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gargol/Ghost/statuses/{sha}","languages_url":"https://api.github.com/repos/gargol/Ghost/languages","stargazers_url":"https://api.github.com/repos/gargol/Ghost/stargazers","contributors_url":"https://api.github.com/repos/gargol/Ghost/contributors","subscribers_url":"https://api.github.com/repos/gargol/Ghost/subscribers","subscription_url":"https://api.github.com/repos/gargol/Ghost/subscription","commits_url":"https://api.github.com/repos/gargol/Ghost/commits{/sha}","git_commits_url":"https://api.github.com/repos/gargol/Ghost/git/commits{/sha}","comments_url":"https://api.github.com/repos/gargol/Ghost/comments{/number}","issue_comment_url":"https://api.github.com/repos/gargol/Ghost/issues/comments{/number}","contents_url":"https://api.github.com/repos/gargol/Ghost/contents/{+path}","compare_url":"https://api.github.com/repos/gargol/Ghost/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gargol/Ghost/merges","archive_url":"https://api.github.com/repos/gargol/Ghost/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gargol/Ghost/downloads","issues_url":"https://api.github.com/repos/gargol/Ghost/issues{/number}","pulls_url":"https://api.github.com/repos/gargol/Ghost/pulls{/number}","milestones_url":"https://api.github.com/repos/gargol/Ghost/milestones{/number}","notifications_url":"https://api.github.com/repos/gargol/Ghost/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gargol/Ghost/labels{/name}","releases_url":"https://api.github.com/repos/gargol/Ghost/releases{/id}","deployments_url":"https://api.github.com/repos/gargol/Ghost/deployments","created_at":"2014-08-14T09:07:42Z","updated_at":"2018-09-04T16:30:49Z","pushed_at":"2018-09-29T21:45:32Z","git_url":"git://github.com/gargol/Ghost.git","ssh_url":"git@github.com:gargol/Ghost.git","clone_url":"https://github.com/gargol/Ghost.git","svn_url":"https://github.com/gargol/Ghost","homepage":"https://ghost.org","size":26578,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TryGhost:master","ref":"master","sha":"efc5219afa0bc2112253ff06adadda8637afd2b0","user":{"login":"TryGhost","id":2178663,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNzg2NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/2178663?v=4","gravatar_id":"","url":"https://api.github.com/users/TryGhost","html_url":"https://github.com/TryGhost","followers_url":"https://api.github.com/users/TryGhost/followers","following_url":"https://api.github.com/users/TryGhost/following{/other_user}","gists_url":"https://api.github.com/users/TryGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/TryGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TryGhost/subscriptions","organizations_url":"https://api.github.com/users/TryGhost/orgs","repos_url":"https://api.github.com/users/TryGhost/repos","events_url":"https://api.github.com/users/TryGhost/events{/privacy}","received_events_url":"https://api.github.com/users/TryGhost/received_events","type":"Organization","site_admin":false},"repo":{"id":9852918,"node_id":"MDEwOlJlcG9zaXRvcnk5ODUyOTE4","name":"Ghost","full_name":"TryGhost/Ghost","private":false,"owner":{"login":"TryGhost","id":2178663,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNzg2NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/2178663?v=4","gravatar_id":"","url":"https://api.github.com/users/TryGhost","html_url":"https://github.com/TryGhost","followers_url":"https://api.github.com/users/TryGhost/followers","following_url":"https://api.github.com/users/TryGhost/following{/other_user}","gists_url":"https://api.github.com/users/TryGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/TryGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TryGhost/subscriptions","organizations_url":"https://api.github.com/users/TryGhost/orgs","repos_url":"https://api.github.com/users/TryGhost/repos","events_url":"https://api.github.com/users/TryGhost/events{/privacy}","received_events_url":"https://api.github.com/users/TryGhost/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/TryGhost/Ghost","description":"The platform for professional publishers","fork":false,"url":"https://api.github.com/repos/TryGhost/Ghost","forks_url":"https://api.github.com/repos/TryGhost/Ghost/forks","keys_url":"https://api.github.com/repos/TryGhost/Ghost/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TryGhost/Ghost/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TryGhost/Ghost/teams","hooks_url":"https://api.github.com/repos/TryGhost/Ghost/hooks","issue_events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/events{/number}","events_url":"https://api.github.com/repos/TryGhost/Ghost/events","assignees_url":"https://api.github.com/repos/TryGhost/Ghost/assignees{/user}","branches_url":"https://api.github.com/repos/TryGhost/Ghost/branches{/branch}","tags_url":"https://api.github.com/repos/TryGhost/Ghost/tags","blobs_url":"https://api.github.com/repos/TryGhost/Ghost/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TryGhost/Ghost/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TryGhost/Ghost/git/refs{/sha}","trees_url":"https://api.github.com/repos/TryGhost/Ghost/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TryGhost/Ghost/statuses/{sha}","languages_url":"https://api.github.com/repos/TryGhost/Ghost/languages","stargazers_url":"https://api.github.com/repos/TryGhost/Ghost/stargazers","contributors_url":"https://api.github.com/repos/TryGhost/Ghost/contributors","subscribers_url":"https://api.github.com/repos/TryGhost/Ghost/subscribers","subscription_url":"https://api.github.com/repos/TryGhost/Ghost/subscription","commits_url":"https://api.github.com/repos/TryGhost/Ghost/commits{/sha}","git_commits_url":"https://api.github.com/repos/TryGhost/Ghost/git/commits{/sha}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/comments{/number}","issue_comment_url":"https://api.github.com/repos/TryGhost/Ghost/issues/comments{/number}","contents_url":"https://api.github.com/repos/TryGhost/Ghost/contents/{+path}","compare_url":"https://api.github.com/repos/TryGhost/Ghost/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TryGhost/Ghost/merges","archive_url":"https://api.github.com/repos/TryGhost/Ghost/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TryGhost/Ghost/downloads","issues_url":"https://api.github.com/repos/TryGhost/Ghost/issues{/number}","pulls_url":"https://api.github.com/repos/TryGhost/Ghost/pulls{/number}","milestones_url":"https://api.github.com/repos/TryGhost/Ghost/milestones{/number}","notifications_url":"https://api.github.com/repos/TryGhost/Ghost/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TryGhost/Ghost/labels{/name}","releases_url":"https://api.github.com/repos/TryGhost/Ghost/releases{/id}","deployments_url":"https://api.github.com/repos/TryGhost/Ghost/deployments","created_at":"2013-05-04T11:09:13Z","updated_at":"2018-09-30T18:59:51Z","pushed_at":"2018-09-29T21:49:18Z","git_url":"git://github.com/TryGhost/Ghost.git","ssh_url":"git@github.com:TryGhost/Ghost.git","clone_url":"https://github.com/TryGhost/Ghost.git","svn_url":"https://github.com/TryGhost/Ghost","homepage":"https://ghost.org","size":33297,"stargazers_count":27491,"watchers_count":27491,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5915,"mirror_url":null,"archived":false,"open_issues_count":144,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5915,"open_issues":144,"watchers":27491,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TryGhost/Ghost/pulls/9917"},"html":{"href":"https://github.com/TryGhost/Ghost/pull/9917"},"issue":{"href":"https://api.github.com/repos/TryGhost/Ghost/issues/9917"},"comments":{"href":"https://api.github.com/repos/TryGhost/Ghost/issues/9917/comments"},"review_comments":{"href":"https://api.github.com/repos/TryGhost/Ghost/pulls/9917/comments"},"review_comment":{"href":"https://api.github.com/repos/TryGhost/Ghost/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TryGhost/Ghost/pulls/9917/commits"},"statuses":{"href":"https://api.github.com/repos/TryGhost/Ghost/statuses/1deba6afd96829e0b8c62da1b8fbc0ed864c3000"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kirrg001"}}