{"action":"created","comment":{"url":"https://api.github.com/repos/superdesk/superdesk/pulls/comments/48110224","id":48110224,"diff_hunk":"@@ -563,9 +564,9 @@\n                 !current_item.embargo && current_item.package_type !== 'takes' &&\n                 current_item.state !== 'killed' && !current_item.publish_schedule;\n \n-            action.create_broadcast = (!_.contains(['spiked', 'scheduled', 'killed'], current_item.state)) &&\n-                (_.contains(['published', 'corrected'], current_item.state)) &&\n-                current_item.type === 'text' && !isBroadcast;\n+            action.create_broadcast = (_.contains(['published', 'corrected'], current_item.state)) &&\n+                _.contains(['text', 'preformatted'], current_item.type) &&","path":"client/app/scripts/superdesk-authoring/authoring.js","position":29,"original_position":29,"commit_id":"8633bd3b5215482a3f84bca9b1c94b9781be3bcf","original_commit_id":"8633bd3b5215482a3f84bca9b1c94b9781be3bcf","user":{"login":"akintolga","id":8636746,"avatar_url":"https://avatars.githubusercontent.com/u/8636746?v=3","gravatar_id":"","url":"https://api.github.com/users/akintolga","html_url":"https://github.com/akintolga","followers_url":"https://api.github.com/users/akintolga/followers","following_url":"https://api.github.com/users/akintolga/following{/other_user}","gists_url":"https://api.github.com/users/akintolga/gists{/gist_id}","starred_url":"https://api.github.com/users/akintolga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintolga/subscriptions","organizations_url":"https://api.github.com/users/akintolga/orgs","repos_url":"https://api.github.com/users/akintolga/repos","events_url":"https://api.github.com/users/akintolga/events{/privacy}","received_events_url":"https://api.github.com/users/akintolga/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-12-20T23:39:49Z","updated_at":"2015-12-20T23:39:49Z","html_url":"https://github.com/superdesk/superdesk/pull/1549#discussion_r48110224","pull_request_url":"https://api.github.com/repos/superdesk/superdesk/pulls/1549","_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/comments/48110224"},"html":{"href":"https://github.com/superdesk/superdesk/pull/1549#discussion_r48110224"},"pull_request":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/1549"}}},"pull_request":{"url":"https://api.github.com/repos/superdesk/superdesk/pulls/1549","id":53936884,"html_url":"https://github.com/superdesk/superdesk/pull/1549","diff_url":"https://github.com/superdesk/superdesk/pull/1549.diff","patch_url":"https://github.com/superdesk/superdesk/pull/1549.patch","issue_url":"https://api.github.com/repos/superdesk/superdesk/issues/1549","number":1549,"state":"open","locked":false,"title":"[SD-3847] Create broadcast icon should only appear for privileged users.","user":{"login":"mdhaman","id":2268727,"avatar_url":"https://avatars.githubusercontent.com/u/2268727?v=3","gravatar_id":"","url":"https://api.github.com/users/mdhaman","html_url":"https://github.com/mdhaman","followers_url":"https://api.github.com/users/mdhaman/followers","following_url":"https://api.github.com/users/mdhaman/following{/other_user}","gists_url":"https://api.github.com/users/mdhaman/gists{/gist_id}","starred_url":"https://api.github.com/users/mdhaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdhaman/subscriptions","organizations_url":"https://api.github.com/users/mdhaman/orgs","repos_url":"https://api.github.com/users/mdhaman/repos","events_url":"https://api.github.com/users/mdhaman/events{/privacy}","received_events_url":"https://api.github.com/users/mdhaman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-17T05:41:44Z","updated_at":"2015-12-20T23:39:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"258a48d9f75df42adcd97b42cf491a0a096af109","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/superdesk/superdesk/pulls/1549/commits","review_comments_url":"https://api.github.com/repos/superdesk/superdesk/pulls/1549/comments","review_comment_url":"https://api.github.com/repos/superdesk/superdesk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superdesk/superdesk/issues/1549/comments","statuses_url":"https://api.github.com/repos/superdesk/superdesk/statuses/8633bd3b5215482a3f84bca9b1c94b9781be3bcf","head":{"label":"mdhaman:broadcast","ref":"broadcast","sha":"8633bd3b5215482a3f84bca9b1c94b9781be3bcf","user":{"login":"mdhaman","id":2268727,"avatar_url":"https://avatars.githubusercontent.com/u/2268727?v=3","gravatar_id":"","url":"https://api.github.com/users/mdhaman","html_url":"https://github.com/mdhaman","followers_url":"https://api.github.com/users/mdhaman/followers","following_url":"https://api.github.com/users/mdhaman/following{/other_user}","gists_url":"https://api.github.com/users/mdhaman/gists{/gist_id}","starred_url":"https://api.github.com/users/mdhaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdhaman/subscriptions","organizations_url":"https://api.github.com/users/mdhaman/orgs","repos_url":"https://api.github.com/users/mdhaman/repos","events_url":"https://api.github.com/users/mdhaman/events{/privacy}","received_events_url":"https://api.github.com/users/mdhaman/received_events","type":"User","site_admin":false},"repo":{"id":30816603,"name":"superdesk","full_name":"mdhaman/superdesk","owner":{"login":"mdhaman","id":2268727,"avatar_url":"https://avatars.githubusercontent.com/u/2268727?v=3","gravatar_id":"","url":"https://api.github.com/users/mdhaman","html_url":"https://github.com/mdhaman","followers_url":"https://api.github.com/users/mdhaman/followers","following_url":"https://api.github.com/users/mdhaman/following{/other_user}","gists_url":"https://api.github.com/users/mdhaman/gists{/gist_id}","starred_url":"https://api.github.com/users/mdhaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdhaman/subscriptions","organizations_url":"https://api.github.com/users/mdhaman/orgs","repos_url":"https://api.github.com/users/mdhaman/repos","events_url":"https://api.github.com/users/mdhaman/events{/privacy}","received_events_url":"https://api.github.com/users/mdhaman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mdhaman/superdesk","description":"","fork":true,"url":"https://api.github.com/repos/mdhaman/superdesk","forks_url":"https://api.github.com/repos/mdhaman/superdesk/forks","keys_url":"https://api.github.com/repos/mdhaman/superdesk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdhaman/superdesk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdhaman/superdesk/teams","hooks_url":"https://api.github.com/repos/mdhaman/superdesk/hooks","issue_events_url":"https://api.github.com/repos/mdhaman/superdesk/issues/events{/number}","events_url":"https://api.github.com/repos/mdhaman/superdesk/events","assignees_url":"https://api.github.com/repos/mdhaman/superdesk/assignees{/user}","branches_url":"https://api.github.com/repos/mdhaman/superdesk/branches{/branch}","tags_url":"https://api.github.com/repos/mdhaman/superdesk/tags","blobs_url":"https://api.github.com/repos/mdhaman/superdesk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdhaman/superdesk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdhaman/superdesk/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdhaman/superdesk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdhaman/superdesk/statuses/{sha}","languages_url":"https://api.github.com/repos/mdhaman/superdesk/languages","stargazers_url":"https://api.github.com/repos/mdhaman/superdesk/stargazers","contributors_url":"https://api.github.com/repos/mdhaman/superdesk/contributors","subscribers_url":"https://api.github.com/repos/mdhaman/superdesk/subscribers","subscription_url":"https://api.github.com/repos/mdhaman/superdesk/subscription","commits_url":"https://api.github.com/repos/mdhaman/superdesk/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdhaman/superdesk/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdhaman/superdesk/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdhaman/superdesk/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdhaman/superdesk/contents/{+path}","compare_url":"https://api.github.com/repos/mdhaman/superdesk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdhaman/superdesk/merges","archive_url":"https://api.github.com/repos/mdhaman/superdesk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdhaman/superdesk/downloads","issues_url":"https://api.github.com/repos/mdhaman/superdesk/issues{/number}","pulls_url":"https://api.github.com/repos/mdhaman/superdesk/pulls{/number}","milestones_url":"https://api.github.com/repos/mdhaman/superdesk/milestones{/number}","notifications_url":"https://api.github.com/repos/mdhaman/superdesk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdhaman/superdesk/labels{/name}","releases_url":"https://api.github.com/repos/mdhaman/superdesk/releases{/id}","created_at":"2015-02-15T03:23:33Z","updated_at":"2015-09-01T02:02:26Z","pushed_at":"2015-12-20T04:15:40Z","git_url":"git://github.com/mdhaman/superdesk.git","ssh_url":"git@github.com:mdhaman/superdesk.git","clone_url":"https://github.com/mdhaman/superdesk.git","svn_url":"https://github.com/mdhaman/superdesk","homepage":null,"size":65005,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"superdesk:master","ref":"master","sha":"01401dc8e92952305fd6207ed6c8e6caa86fecf2","user":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"repo":{"id":23570030,"name":"superdesk","full_name":"superdesk/superdesk","owner":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/superdesk/superdesk","description":"Superdesk is an end-to-end news creation, production, curation, distribution, and publishing platform.","fork":false,"url":"https://api.github.com/repos/superdesk/superdesk","forks_url":"https://api.github.com/repos/superdesk/superdesk/forks","keys_url":"https://api.github.com/repos/superdesk/superdesk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superdesk/superdesk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superdesk/superdesk/teams","hooks_url":"https://api.github.com/repos/superdesk/superdesk/hooks","issue_events_url":"https://api.github.com/repos/superdesk/superdesk/issues/events{/number}","events_url":"https://api.github.com/repos/superdesk/superdesk/events","assignees_url":"https://api.github.com/repos/superdesk/superdesk/assignees{/user}","branches_url":"https://api.github.com/repos/superdesk/superdesk/branches{/branch}","tags_url":"https://api.github.com/repos/superdesk/superdesk/tags","blobs_url":"https://api.github.com/repos/superdesk/superdesk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superdesk/superdesk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superdesk/superdesk/git/refs{/sha}","trees_url":"https://api.github.com/repos/superdesk/superdesk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superdesk/superdesk/statuses/{sha}","languages_url":"https://api.github.com/repos/superdesk/superdesk/languages","stargazers_url":"https://api.github.com/repos/superdesk/superdesk/stargazers","contributors_url":"https://api.github.com/repos/superdesk/superdesk/contributors","subscribers_url":"https://api.github.com/repos/superdesk/superdesk/subscribers","subscription_url":"https://api.github.com/repos/superdesk/superdesk/subscription","commits_url":"https://api.github.com/repos/superdesk/superdesk/commits{/sha}","git_commits_url":"https://api.github.com/repos/superdesk/superdesk/git/commits{/sha}","comments_url":"https://api.github.com/repos/superdesk/superdesk/comments{/number}","issue_comment_url":"https://api.github.com/repos/superdesk/superdesk/issues/comments{/number}","contents_url":"https://api.github.com/repos/superdesk/superdesk/contents/{+path}","compare_url":"https://api.github.com/repos/superdesk/superdesk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superdesk/superdesk/merges","archive_url":"https://api.github.com/repos/superdesk/superdesk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superdesk/superdesk/downloads","issues_url":"https://api.github.com/repos/superdesk/superdesk/issues{/number}","pulls_url":"https://api.github.com/repos/superdesk/superdesk/pulls{/number}","milestones_url":"https://api.github.com/repos/superdesk/superdesk/milestones{/number}","notifications_url":"https://api.github.com/repos/superdesk/superdesk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superdesk/superdesk/labels{/name}","releases_url":"https://api.github.com/repos/superdesk/superdesk/releases{/id}","created_at":"2014-09-02T07:56:17Z","updated_at":"2015-12-17T01:18:59Z","pushed_at":"2015-12-20T23:20:52Z","git_url":"git://github.com/superdesk/superdesk.git","ssh_url":"git@github.com:superdesk/superdesk.git","clone_url":"https://github.com/superdesk/superdesk.git","svn_url":"https://github.com/superdesk/superdesk","homepage":"http://www.superdesk.org/","size":71291,"stargazers_count":49,"watchers_count":49,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":12,"forks":38,"open_issues":12,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/1549"},"html":{"href":"https://github.com/superdesk/superdesk/pull/1549"},"issue":{"href":"https://api.github.com/repos/superdesk/superdesk/issues/1549"},"comments":{"href":"https://api.github.com/repos/superdesk/superdesk/issues/1549/comments"},"review_comments":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/1549/comments"},"review_comment":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superdesk/superdesk/pulls/1549/commits"},"statuses":{"href":"https://api.github.com/repos/superdesk/superdesk/statuses/8633bd3b5215482a3f84bca9b1c94b9781be3bcf"}}}}