{"action":"created","comment":{"url":"https://api.github.com/repos/goalgorilla/open_social/pulls/comments/209583471","pull_request_review_id":145622060,"id":209583471,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTU4MzQ3MQ==","diff_hunk":"@@ -96,37 +135,45 @@ function social_comment_form_reply_validate($form, FormStateInterface $form_stat\n function social_comment_comment_links_alter(array &$links, CommentInterface $entity, array &$context) {\n   $bundle = $entity->bundle();\n   $commented_entity = $entity->getCommentedEntity();\n-  $account = \\Drupal::currentUser();\n-  switch ($bundle) {","path":"modules/social_features/social_comment/social_comment.module","position":79,"original_position":79,"commit_id":"5a6ad68ec8b545e516637944b93a4155493f7d5e","original_commit_id":"5a6ad68ec8b545e516637944b93a4155493f7d5e","user":{"login":"bramtenhove","id":7124754,"node_id":"MDQ6VXNlcjcxMjQ3NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7124754?v=4","gravatar_id":"","url":"https://api.github.com/users/bramtenhove","html_url":"https://github.com/bramtenhove","followers_url":"https://api.github.com/users/bramtenhove/followers","following_url":"https://api.github.com/users/bramtenhove/following{/other_user}","gists_url":"https://api.github.com/users/bramtenhove/gists{/gist_id}","starred_url":"https://api.github.com/users/bramtenhove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bramtenhove/subscriptions","organizations_url":"https://api.github.com/users/bramtenhove/orgs","repos_url":"https://api.github.com/users/bramtenhove/repos","events_url":"https://api.github.com/users/bramtenhove/events{/privacy}","received_events_url":"https://api.github.com/users/bramtenhove/received_events","type":"User","site_admin":false},"body":"Refactored the `switch` statement as it was really just an `if` statement..","created_at":"2018-08-13T12:04:30Z","updated_at":"2018-08-13T12:04:30Z","html_url":"https://github.com/goalgorilla/open_social/pull/993#discussion_r209583471","pull_request_url":"https://api.github.com/repos/goalgorilla/open_social/pulls/993","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/goalgorilla/open_social/pulls/comments/209583471"},"html":{"href":"https://github.com/goalgorilla/open_social/pull/993#discussion_r209583471"},"pull_request":{"href":"https://api.github.com/repos/goalgorilla/open_social/pulls/993"}}},"pull_request":{"url":"https://api.github.com/repos/goalgorilla/open_social/pulls/993","id":207955454,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3OTU1NDU0","html_url":"https://github.com/goalgorilla/open_social/pull/993","diff_url":"https://github.com/goalgorilla/open_social/pull/993.diff","patch_url":"https://github.com/goalgorilla/open_social/pull/993.patch","issue_url":"https://api.github.com/repos/goalgorilla/open_social/issues/993","number":993,"state":"open","locked":false,"title":"DS-5832 - As a CM+ I want to recognise unpublished comments and (un)publish them","user":{"login":"bramtenhove","id":7124754,"node_id":"MDQ6VXNlcjcxMjQ3NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7124754?v=4","gravatar_id":"","url":"https://api.github.com/users/bramtenhove","html_url":"https://github.com/bramtenhove","followers_url":"https://api.github.com/users/bramtenhove/followers","following_url":"https://api.github.com/users/bramtenhove/following{/other_user}","gists_url":"https://api.github.com/users/bramtenhove/gists{/gist_id}","starred_url":"https://api.github.com/users/bramtenhove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bramtenhove/subscriptions","organizations_url":"https://api.github.com/users/bramtenhove/orgs","repos_url":"https://api.github.com/users/bramtenhove/repos","events_url":"https://api.github.com/users/bramtenhove/events{/privacy}","received_events_url":"https://api.github.com/users/bramtenhove/received_events","type":"User","site_admin":false},"body":"## Problem\r\nComments can already be unpublished via the comments overview page. However these comments do not look different from published comments.\r\n\r\nNext to that CM+ cannot publish or unpublish comments in the comment edit screen.\r\n\r\n## Solution\r\nCM+ can now publish or unpublish comments in the comment edit screen. There is also a visual indication that the comment (or comment reply) is unpublished.\r\n\r\nWhen the main comment is unpublished all the replies are also hidden as the thread will have no context anymore.\r\n\r\n## Issue tracker\r\n- https://jira.goalgorilla.com/browse/DS-5832\r\n\r\n## HTT\r\n- [ ] Check out the code changes\r\n- [ ] Login as LU and add a comment to a node\r\n- [ ] Add two replies to the comment\r\n- [ ] Login as CM and unpublish the second reply\r\n- [ ] As LU notice you see the comment with a single reply\r\n- [ ] As CM notice you see the comment and the replies, it's indicating clearly which is unpublished\r\n- [ ] Notice you cannot click the Reply button nor like the comment (you can see who liked the comment)\r\n- [ ] Unpublish the main comment\r\n- [ ] As CM notice you see the comment and the replies, it's indicating clearly which is unpublished\r\n- [ ] As LU notice you see no comment nor the thread\r\n\r\n## Documentation\r\n- [ ] This item is documented on LGOS\r\n- [ ] This item has been added to the feature overview\r\n\r\n## Release notes\r\nCM+ can now clearly see which comments are unpublished. Also it is possible to publish or unpublish comments by going to their edit screen.","created_at":"2018-08-13T12:03:33Z","updated_at":"2018-08-13T12:04:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abc23534e20d63285e9769ae6fb961b4eefc2b49","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/goalgorilla/open_social/milestones/26","html_url":"https://github.com/goalgorilla/open_social/milestone/26","labels_url":"https://api.github.com/repos/goalgorilla/open_social/milestones/26/labels","id":3421780,"node_id":"MDk6TWlsZXN0b25lMzQyMTc4MA==","number":26,"title":"3.0","description":"","creator":{"login":"jaapjan","id":2848293,"node_id":"MDQ6VXNlcjI4NDgyOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/2848293?v=4","gravatar_id":"","url":"https://api.github.com/users/jaapjan","html_url":"https://github.com/jaapjan","followers_url":"https://api.github.com/users/jaapjan/followers","following_url":"https://api.github.com/users/jaapjan/following{/other_user}","gists_url":"https://api.github.com/users/jaapjan/gists{/gist_id}","starred_url":"https://api.github.com/users/jaapjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaapjan/subscriptions","organizations_url":"https://api.github.com/users/jaapjan/orgs","repos_url":"https://api.github.com/users/jaapjan/repos","events_url":"https://api.github.com/users/jaapjan/events{/privacy}","received_events_url":"https://api.github.com/users/jaapjan/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":5,"state":"open","created_at":"2018-06-13T12:19:53Z","updated_at":"2018-08-13T12:03:33Z","due_on":"2018-08-30T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/goalgorilla/open_social/pulls/993/commits","review_comments_url":"https://api.github.com/repos/goalgorilla/open_social/pulls/993/comments","review_comment_url":"https://api.github.com/repos/goalgorilla/open_social/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goalgorilla/open_social/issues/993/comments","statuses_url":"https://api.github.com/repos/goalgorilla/open_social/statuses/5a6ad68ec8b545e516637944b93a4155493f7d5e","head":{"label":"goalgorilla:feature/DS-5832-unpublished-comments","ref":"feature/DS-5832-unpublished-comments","sha":"5a6ad68ec8b545e516637944b93a4155493f7d5e","user":{"login":"goalgorilla","id":16816975,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODE2OTc1","avatar_url":"https://avatars3.githubusercontent.com/u/16816975?v=4","gravatar_id":"","url":"https://api.github.com/users/goalgorilla","html_url":"https://github.com/goalgorilla","followers_url":"https://api.github.com/users/goalgorilla/followers","following_url":"https://api.github.com/users/goalgorilla/following{/other_user}","gists_url":"https://api.github.com/users/goalgorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/goalgorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goalgorilla/subscriptions","organizations_url":"https://api.github.com/users/goalgorilla/orgs","repos_url":"https://api.github.com/users/goalgorilla/repos","events_url":"https://api.github.com/users/goalgorilla/events{/privacy}","received_events_url":"https://api.github.com/users/goalgorilla/received_events","type":"Organization","site_admin":false},"repo":{"id":63693909,"node_id":"MDEwOlJlcG9zaXRvcnk2MzY5MzkwOQ==","name":"open_social","full_name":"goalgorilla/open_social","owner":{"login":"goalgorilla","id":16816975,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODE2OTc1","avatar_url":"https://avatars3.githubusercontent.com/u/16816975?v=4","gravatar_id":"","url":"https://api.github.com/users/goalgorilla","html_url":"https://github.com/goalgorilla","followers_url":"https://api.github.com/users/goalgorilla/followers","following_url":"https://api.github.com/users/goalgorilla/following{/other_user}","gists_url":"https://api.github.com/users/goalgorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/goalgorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goalgorilla/subscriptions","organizations_url":"https://api.github.com/users/goalgorilla/orgs","repos_url":"https://api.github.com/users/goalgorilla/repos","events_url":"https://api.github.com/users/goalgorilla/events{/privacy}","received_events_url":"https://api.github.com/users/goalgorilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goalgorilla/open_social","description":"Open Social install profile Drupal 8","fork":false,"url":"https://api.github.com/repos/goalgorilla/open_social","forks_url":"https://api.github.com/repos/goalgorilla/open_social/forks","keys_url":"https://api.github.com/repos/goalgorilla/open_social/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goalgorilla/open_social/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goalgorilla/open_social/teams","hooks_url":"https://api.github.com/repos/goalgorilla/open_social/hooks","issue_events_url":"https://api.github.com/repos/goalgorilla/open_social/issues/events{/number}","events_url":"https://api.github.com/repos/goalgorilla/open_social/events","assignees_url":"https://api.github.com/repos/goalgorilla/open_social/assignees{/user}","branches_url":"https://api.github.com/repos/goalgorilla/open_social/branches{/branch}","tags_url":"https://api.github.com/repos/goalgorilla/open_social/tags","blobs_url":"https://api.github.com/repos/goalgorilla/open_social/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goalgorilla/open_social/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goalgorilla/open_social/git/refs{/sha}","trees_url":"https://api.github.com/repos/goalgorilla/open_social/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goalgorilla/open_social/statuses/{sha}","languages_url":"https://api.github.com/repos/goalgorilla/open_social/languages","stargazers_url":"https://api.github.com/repos/goalgorilla/open_social/stargazers","contributors_url":"https://api.github.com/repos/goalgorilla/open_social/contributors","subscribers_url":"https://api.github.com/repos/goalgorilla/open_social/subscribers","subscription_url":"https://api.github.com/repos/goalgorilla/open_social/subscription","commits_url":"https://api.github.com/repos/goalgorilla/open_social/commits{/sha}","git_commits_url":"https://api.github.com/repos/goalgorilla/open_social/git/commits{/sha}","comments_url":"https://api.github.com/repos/goalgorilla/open_social/comments{/number}","issue_comment_url":"https://api.github.com/repos/goalgorilla/open_social/issues/comments{/number}","contents_url":"https://api.github.com/repos/goalgorilla/open_social/contents/{+path}","compare_url":"https://api.github.com/repos/goalgorilla/open_social/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goalgorilla/open_social/merges","archive_url":"https://api.github.com/repos/goalgorilla/open_social/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goalgorilla/open_social/downloads","issues_url":"https://api.github.com/repos/goalgorilla/open_social/issues{/number}","pulls_url":"https://api.github.com/repos/goalgorilla/open_social/pulls{/number}","milestones_url":"https://api.github.com/repos/goalgorilla/open_social/milestones{/number}","notifications_url":"https://api.github.com/repos/goalgorilla/open_social/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goalgorilla/open_social/labels{/name}","releases_url":"https://api.github.com/repos/goalgorilla/open_social/releases{/id}","deployments_url":"https://api.github.com/repos/goalgorilla/open_social/deployments","created_at":"2016-07-19T12:56:46Z","updated_at":"2018-08-09T12:36:49Z","pushed_at":"2018-08-13T12:03:34Z","git_url":"git://github.com/goalgorilla/open_social.git","ssh_url":"git@github.com:goalgorilla/open_social.git","clone_url":"https://github.com/goalgorilla/open_social.git","svn_url":"https://github.com/goalgorilla/open_social","homepage":"http://www.getopensocial.com","size":129284,"stargazers_count":57,"watchers_count":57,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"archived":false,"open_issues_count":44,"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":61,"open_issues":44,"watchers":57,"default_branch":"8.x-2.x"}},"base":{"label":"goalgorilla:8.x-3.x","ref":"8.x-3.x","sha":"b0bb8a01fb15ea5f8ac25d3ef39c9167e3dd18c6","user":{"login":"goalgorilla","id":16816975,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODE2OTc1","avatar_url":"https://avatars3.githubusercontent.com/u/16816975?v=4","gravatar_id":"","url":"https://api.github.com/users/goalgorilla","html_url":"https://github.com/goalgorilla","followers_url":"https://api.github.com/users/goalgorilla/followers","following_url":"https://api.github.com/users/goalgorilla/following{/other_user}","gists_url":"https://api.github.com/users/goalgorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/goalgorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goalgorilla/subscriptions","organizations_url":"https://api.github.com/users/goalgorilla/orgs","repos_url":"https://api.github.com/users/goalgorilla/repos","events_url":"https://api.github.com/users/goalgorilla/events{/privacy}","received_events_url":"https://api.github.com/users/goalgorilla/received_events","type":"Organization","site_admin":false},"repo":{"id":63693909,"node_id":"MDEwOlJlcG9zaXRvcnk2MzY5MzkwOQ==","name":"open_social","full_name":"goalgorilla/open_social","owner":{"login":"goalgorilla","id":16816975,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODE2OTc1","avatar_url":"https://avatars3.githubusercontent.com/u/16816975?v=4","gravatar_id":"","url":"https://api.github.com/users/goalgorilla","html_url":"https://github.com/goalgorilla","followers_url":"https://api.github.com/users/goalgorilla/followers","following_url":"https://api.github.com/users/goalgorilla/following{/other_user}","gists_url":"https://api.github.com/users/goalgorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/goalgorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goalgorilla/subscriptions","organizations_url":"https://api.github.com/users/goalgorilla/orgs","repos_url":"https://api.github.com/users/goalgorilla/repos","events_url":"https://api.github.com/users/goalgorilla/events{/privacy}","received_events_url":"https://api.github.com/users/goalgorilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goalgorilla/open_social","description":"Open Social install profile Drupal 8","fork":false,"url":"https://api.github.com/repos/goalgorilla/open_social","forks_url":"https://api.github.com/repos/goalgorilla/open_social/forks","keys_url":"https://api.github.com/repos/goalgorilla/open_social/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goalgorilla/open_social/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goalgorilla/open_social/teams","hooks_url":"https://api.github.com/repos/goalgorilla/open_social/hooks","issue_events_url":"https://api.github.com/repos/goalgorilla/open_social/issues/events{/number}","events_url":"https://api.github.com/repos/goalgorilla/open_social/events","assignees_url":"https://api.github.com/repos/goalgorilla/open_social/assignees{/user}","branches_url":"https://api.github.com/repos/goalgorilla/open_social/branches{/branch}","tags_url":"https://api.github.com/repos/goalgorilla/open_social/tags","blobs_url":"https://api.github.com/repos/goalgorilla/open_social/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goalgorilla/open_social/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goalgorilla/open_social/git/refs{/sha}","trees_url":"https://api.github.com/repos/goalgorilla/open_social/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goalgorilla/open_social/statuses/{sha}","languages_url":"https://api.github.com/repos/goalgorilla/open_social/languages","stargazers_url":"https://api.github.com/repos/goalgorilla/open_social/stargazers","contributors_url":"https://api.github.com/repos/goalgorilla/open_social/contributors","subscribers_url":"https://api.github.com/repos/goalgorilla/open_social/subscribers","subscription_url":"https://api.github.com/repos/goalgorilla/open_social/subscription","commits_url":"https://api.github.com/repos/goalgorilla/open_social/commits{/sha}","git_commits_url":"https://api.github.com/repos/goalgorilla/open_social/git/commits{/sha}","comments_url":"https://api.github.com/repos/goalgorilla/open_social/comments{/number}","issue_comment_url":"https://api.github.com/repos/goalgorilla/open_social/issues/comments{/number}","contents_url":"https://api.github.com/repos/goalgorilla/open_social/contents/{+path}","compare_url":"https://api.github.com/repos/goalgorilla/open_social/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goalgorilla/open_social/merges","archive_url":"https://api.github.com/repos/goalgorilla/open_social/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goalgorilla/open_social/downloads","issues_url":"https://api.github.com/repos/goalgorilla/open_social/issues{/number}","pulls_url":"https://api.github.com/repos/goalgorilla/open_social/pulls{/number}","milestones_url":"https://api.github.com/repos/goalgorilla/open_social/milestones{/number}","notifications_url":"https://api.github.com/repos/goalgorilla/open_social/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goalgorilla/open_social/labels{/name}","releases_url":"https://api.github.com/repos/goalgorilla/open_social/releases{/id}","deployments_url":"https://api.github.com/repos/goalgorilla/open_social/deployments","created_at":"2016-07-19T12:56:46Z","updated_at":"2018-08-09T12:36:49Z","pushed_at":"2018-08-13T12:03:34Z","git_url":"git://github.com/goalgorilla/open_social.git","ssh_url":"git@github.com:goalgorilla/open_social.git","clone_url":"https://github.com/goalgorilla/open_social.git","svn_url":"https://github.com/goalgorilla/open_social","homepage":"http://www.getopensocial.com","size":129284,"stargazers_count":57,"watchers_count":57,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"archived":false,"open_issues_count":44,"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":61,"open_issues":44,"watchers":57,"default_branch":"8.x-2.x"}},"_links":{"self":{"href":"https://api.github.com/repos/goalgorilla/open_social/pulls/993"},"html":{"href":"https://github.com/goalgorilla/open_social/pull/993"},"issue":{"href":"https://api.github.com/repos/goalgorilla/open_social/issues/993"},"comments":{"href":"https://api.github.com/repos/goalgorilla/open_social/issues/993/comments"},"review_comments":{"href":"https://api.github.com/repos/goalgorilla/open_social/pulls/993/comments"},"review_comment":{"href":"https://api.github.com/repos/goalgorilla/open_social/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goalgorilla/open_social/pulls/993/commits"},"statuses":{"href":"https://api.github.com/repos/goalgorilla/open_social/statuses/5a6ad68ec8b545e516637944b93a4155493f7d5e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bramtenhove"}}