{"action":"created","comment":{"url":"https://api.github.com/repos/castlecms/castle.cms/pulls/comments/239897881","pull_request_review_id":182811038,"id":239897881,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTg5Nzg4MQ==","diff_hunk":"@@ -168,7 +168,7 @@ define([\n         selection = [this.props.reference];\n       }\n       var $re = $(that.refs.relateditem.getDOMNode());\n-      var options = JSON.parse($('.pat-relateditems').attr('data-pat-relateditems'));\n+      var options = JSON.parse($('.pat-imagewidget').attr('data-pat-imagewidget'));","path":"castle/cms/static/patterns/imagewidget.js","position":5,"original_position":5,"commit_id":"7afd0b63ac5a96ddd73696f71f3f65b29d717005","original_commit_id":"7afd0b63ac5a96ddd73696f71f3f65b29d717005","user":{"login":"vangheem","id":524413,"node_id":"MDQ6VXNlcjUyNDQxMw==","avatar_url":"https://avatars1.githubusercontent.com/u/524413?v=4","gravatar_id":"","url":"https://api.github.com/users/vangheem","html_url":"https://github.com/vangheem","followers_url":"https://api.github.com/users/vangheem/followers","following_url":"https://api.github.com/users/vangheem/following{/other_user}","gists_url":"https://api.github.com/users/vangheem/gists{/gist_id}","starred_url":"https://api.github.com/users/vangheem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vangheem/subscriptions","organizations_url":"https://api.github.com/users/vangheem/orgs","repos_url":"https://api.github.com/users/vangheem/repos","events_url":"https://api.github.com/users/vangheem/events{/privacy}","received_events_url":"https://api.github.com/users/vangheem/received_events","type":"User","site_admin":false},"body":"I think we should just do a try catch instead. pat-imagewidget is wrong here.","created_at":"2018-12-07T18:13:06Z","updated_at":"2018-12-07T18:13:10Z","html_url":"https://github.com/castlecms/castle.cms/pull/276#discussion_r239897881","pull_request_url":"https://api.github.com/repos/castlecms/castle.cms/pulls/276","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/castlecms/castle.cms/pulls/comments/239897881"},"html":{"href":"https://github.com/castlecms/castle.cms/pull/276#discussion_r239897881"},"pull_request":{"href":"https://api.github.com/repos/castlecms/castle.cms/pulls/276"}}},"pull_request":{"url":"https://api.github.com/repos/castlecms/castle.cms/pulls/276","id":236920714,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2OTIwNzE0","html_url":"https://github.com/castlecms/castle.cms/pull/276","diff_url":"https://github.com/castlecms/castle.cms/pull/276.diff","patch_url":"https://github.com/castlecms/castle.cms/pull/276.patch","issue_url":"https://api.github.com/repos/castlecms/castle.cms/issues/276","number":276,"state":"open","locked":false,"title":"Use pat-imagewidget. Compile logged-in resources.","user":{"login":"lucid-0","id":22567428,"node_id":"MDQ6VXNlcjIyNTY3NDI4","avatar_url":"https://avatars0.githubusercontent.com/u/22567428?v=4","gravatar_id":"","url":"https://api.github.com/users/lucid-0","html_url":"https://github.com/lucid-0","followers_url":"https://api.github.com/users/lucid-0/followers","following_url":"https://api.github.com/users/lucid-0/following{/other_user}","gists_url":"https://api.github.com/users/lucid-0/gists{/gist_id}","starred_url":"https://api.github.com/users/lucid-0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucid-0/subscriptions","organizations_url":"https://api.github.com/users/lucid-0/orgs","repos_url":"https://api.github.com/users/lucid-0/repos","events_url":"https://api.github.com/users/lucid-0/events{/privacy}","received_events_url":"https://api.github.com/users/lucid-0/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-07T16:20:34Z","updated_at":"2018-12-07T18:13:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"609a274e45a255c8064094d75d6c0fbd60ca8905","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/castlecms/castle.cms/pulls/276/commits","review_comments_url":"https://api.github.com/repos/castlecms/castle.cms/pulls/276/comments","review_comment_url":"https://api.github.com/repos/castlecms/castle.cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/castlecms/castle.cms/issues/276/comments","statuses_url":"https://api.github.com/repos/castlecms/castle.cms/statuses/7afd0b63ac5a96ddd73696f71f3f65b29d717005","head":{"label":"castlecms:ka/fix-imagewidget","ref":"ka/fix-imagewidget","sha":"7afd0b63ac5a96ddd73696f71f3f65b29d717005","user":{"login":"castlecms","id":20521618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNTIxNjE4","avatar_url":"https://avatars1.githubusercontent.com/u/20521618?v=4","gravatar_id":"","url":"https://api.github.com/users/castlecms","html_url":"https://github.com/castlecms","followers_url":"https://api.github.com/users/castlecms/followers","following_url":"https://api.github.com/users/castlecms/following{/other_user}","gists_url":"https://api.github.com/users/castlecms/gists{/gist_id}","starred_url":"https://api.github.com/users/castlecms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/castlecms/subscriptions","organizations_url":"https://api.github.com/users/castlecms/orgs","repos_url":"https://api.github.com/users/castlecms/repos","events_url":"https://api.github.com/users/castlecms/events{/privacy}","received_events_url":"https://api.github.com/users/castlecms/received_events","type":"Organization","site_admin":false},"repo":{"id":74428198,"node_id":"MDEwOlJlcG9zaXRvcnk3NDQyODE5OA==","name":"castle.cms","full_name":"castlecms/castle.cms","private":false,"owner":{"login":"castlecms","id":20521618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNTIxNjE4","avatar_url":"https://avatars1.githubusercontent.com/u/20521618?v=4","gravatar_id":"","url":"https://api.github.com/users/castlecms","html_url":"https://github.com/castlecms","followers_url":"https://api.github.com/users/castlecms/followers","following_url":"https://api.github.com/users/castlecms/following{/other_user}","gists_url":"https://api.github.com/users/castlecms/gists{/gist_id}","starred_url":"https://api.github.com/users/castlecms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/castlecms/subscriptions","organizations_url":"https://api.github.com/users/castlecms/orgs","repos_url":"https://api.github.com/users/castlecms/repos","events_url":"https://api.github.com/users/castlecms/events{/privacy}","received_events_url":"https://api.github.com/users/castlecms/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/castlecms/castle.cms","description":"A product of Wildcard Corp. https://wildcardcorp.com","fork":false,"url":"https://api.github.com/repos/castlecms/castle.cms","forks_url":"https://api.github.com/repos/castlecms/castle.cms/forks","keys_url":"https://api.github.com/repos/castlecms/castle.cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/castlecms/castle.cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/castlecms/castle.cms/teams","hooks_url":"https://api.github.com/repos/castlecms/castle.cms/hooks","issue_events_url":"https://api.github.com/repos/castlecms/castle.cms/issues/events{/number}","events_url":"https://api.github.com/repos/castlecms/castle.cms/events","assignees_url":"https://api.github.com/repos/castlecms/castle.cms/assignees{/user}","branches_url":"https://api.github.com/repos/castlecms/castle.cms/branches{/branch}","tags_url":"https://api.github.com/repos/castlecms/castle.cms/tags","blobs_url":"https://api.github.com/repos/castlecms/castle.cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/castlecms/castle.cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/castlecms/castle.cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/castlecms/castle.cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/castlecms/castle.cms/statuses/{sha}","languages_url":"https://api.github.com/repos/castlecms/castle.cms/languages","stargazers_url":"https://api.github.com/repos/castlecms/castle.cms/stargazers","contributors_url":"https://api.github.com/repos/castlecms/castle.cms/contributors","subscribers_url":"https://api.github.com/repos/castlecms/castle.cms/subscribers","subscription_url":"https://api.github.com/repos/castlecms/castle.cms/subscription","commits_url":"https://api.github.com/repos/castlecms/castle.cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/castlecms/castle.cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/castlecms/castle.cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/castlecms/castle.cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/castlecms/castle.cms/contents/{+path}","compare_url":"https://api.github.com/repos/castlecms/castle.cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/castlecms/castle.cms/merges","archive_url":"https://api.github.com/repos/castlecms/castle.cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/castlecms/castle.cms/downloads","issues_url":"https://api.github.com/repos/castlecms/castle.cms/issues{/number}","pulls_url":"https://api.github.com/repos/castlecms/castle.cms/pulls{/number}","milestones_url":"https://api.github.com/repos/castlecms/castle.cms/milestones{/number}","notifications_url":"https://api.github.com/repos/castlecms/castle.cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/castlecms/castle.cms/labels{/name}","releases_url":"https://api.github.com/repos/castlecms/castle.cms/releases{/id}","deployments_url":"https://api.github.com/repos/castlecms/castle.cms/deployments","created_at":"2016-11-22T02:59:39Z","updated_at":"2018-12-07T15:31:01Z","pushed_at":"2018-12-07T18:13:10Z","git_url":"git://github.com/castlecms/castle.cms.git","ssh_url":"git@github.com:castlecms/castle.cms.git","clone_url":"https://github.com/castlecms/castle.cms.git","svn_url":"https://github.com/castlecms/castle.cms","homepage":"https://castlecms.io","size":31693,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":54,"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","node_id":"MDc6TGljZW5zZTg="},"forks":5,"open_issues":54,"watchers":24,"default_branch":"master"}},"base":{"label":"castlecms:master","ref":"master","sha":"0906612763732e29e6700d5474a480fd2e61aa7f","user":{"login":"castlecms","id":20521618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNTIxNjE4","avatar_url":"https://avatars1.githubusercontent.com/u/20521618?v=4","gravatar_id":"","url":"https://api.github.com/users/castlecms","html_url":"https://github.com/castlecms","followers_url":"https://api.github.com/users/castlecms/followers","following_url":"https://api.github.com/users/castlecms/following{/other_user}","gists_url":"https://api.github.com/users/castlecms/gists{/gist_id}","starred_url":"https://api.github.com/users/castlecms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/castlecms/subscriptions","organizations_url":"https://api.github.com/users/castlecms/orgs","repos_url":"https://api.github.com/users/castlecms/repos","events_url":"https://api.github.com/users/castlecms/events{/privacy}","received_events_url":"https://api.github.com/users/castlecms/received_events","type":"Organization","site_admin":false},"repo":{"id":74428198,"node_id":"MDEwOlJlcG9zaXRvcnk3NDQyODE5OA==","name":"castle.cms","full_name":"castlecms/castle.cms","private":false,"owner":{"login":"castlecms","id":20521618,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNTIxNjE4","avatar_url":"https://avatars1.githubusercontent.com/u/20521618?v=4","gravatar_id":"","url":"https://api.github.com/users/castlecms","html_url":"https://github.com/castlecms","followers_url":"https://api.github.com/users/castlecms/followers","following_url":"https://api.github.com/users/castlecms/following{/other_user}","gists_url":"https://api.github.com/users/castlecms/gists{/gist_id}","starred_url":"https://api.github.com/users/castlecms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/castlecms/subscriptions","organizations_url":"https://api.github.com/users/castlecms/orgs","repos_url":"https://api.github.com/users/castlecms/repos","events_url":"https://api.github.com/users/castlecms/events{/privacy}","received_events_url":"https://api.github.com/users/castlecms/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/castlecms/castle.cms","description":"A product of Wildcard Corp. https://wildcardcorp.com","fork":false,"url":"https://api.github.com/repos/castlecms/castle.cms","forks_url":"https://api.github.com/repos/castlecms/castle.cms/forks","keys_url":"https://api.github.com/repos/castlecms/castle.cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/castlecms/castle.cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/castlecms/castle.cms/teams","hooks_url":"https://api.github.com/repos/castlecms/castle.cms/hooks","issue_events_url":"https://api.github.com/repos/castlecms/castle.cms/issues/events{/number}","events_url":"https://api.github.com/repos/castlecms/castle.cms/events","assignees_url":"https://api.github.com/repos/castlecms/castle.cms/assignees{/user}","branches_url":"https://api.github.com/repos/castlecms/castle.cms/branches{/branch}","tags_url":"https://api.github.com/repos/castlecms/castle.cms/tags","blobs_url":"https://api.github.com/repos/castlecms/castle.cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/castlecms/castle.cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/castlecms/castle.cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/castlecms/castle.cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/castlecms/castle.cms/statuses/{sha}","languages_url":"https://api.github.com/repos/castlecms/castle.cms/languages","stargazers_url":"https://api.github.com/repos/castlecms/castle.cms/stargazers","contributors_url":"https://api.github.com/repos/castlecms/castle.cms/contributors","subscribers_url":"https://api.github.com/repos/castlecms/castle.cms/subscribers","subscription_url":"https://api.github.com/repos/castlecms/castle.cms/subscription","commits_url":"https://api.github.com/repos/castlecms/castle.cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/castlecms/castle.cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/castlecms/castle.cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/castlecms/castle.cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/castlecms/castle.cms/contents/{+path}","compare_url":"https://api.github.com/repos/castlecms/castle.cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/castlecms/castle.cms/merges","archive_url":"https://api.github.com/repos/castlecms/castle.cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/castlecms/castle.cms/downloads","issues_url":"https://api.github.com/repos/castlecms/castle.cms/issues{/number}","pulls_url":"https://api.github.com/repos/castlecms/castle.cms/pulls{/number}","milestones_url":"https://api.github.com/repos/castlecms/castle.cms/milestones{/number}","notifications_url":"https://api.github.com/repos/castlecms/castle.cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/castlecms/castle.cms/labels{/name}","releases_url":"https://api.github.com/repos/castlecms/castle.cms/releases{/id}","deployments_url":"https://api.github.com/repos/castlecms/castle.cms/deployments","created_at":"2016-11-22T02:59:39Z","updated_at":"2018-12-07T15:31:01Z","pushed_at":"2018-12-07T18:13:10Z","git_url":"git://github.com/castlecms/castle.cms.git","ssh_url":"git@github.com:castlecms/castle.cms.git","clone_url":"https://github.com/castlecms/castle.cms.git","svn_url":"https://github.com/castlecms/castle.cms","homepage":"https://castlecms.io","size":31693,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":54,"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","node_id":"MDc6TGljZW5zZTg="},"forks":5,"open_issues":54,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/castlecms/castle.cms/pulls/276"},"html":{"href":"https://github.com/castlecms/castle.cms/pull/276"},"issue":{"href":"https://api.github.com/repos/castlecms/castle.cms/issues/276"},"comments":{"href":"https://api.github.com/repos/castlecms/castle.cms/issues/276/comments"},"review_comments":{"href":"https://api.github.com/repos/castlecms/castle.cms/pulls/276/comments"},"review_comment":{"href":"https://api.github.com/repos/castlecms/castle.cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/castlecms/castle.cms/pulls/276/commits"},"statuses":{"href":"https://api.github.com/repos/castlecms/castle.cms/statuses/7afd0b63ac5a96ddd73696f71f3f65b29d717005"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"vangheem"}}