{"action":"created","comment":{"url":"https://api.github.com/repos/moderntribe/products-extensions/pulls/comments/97582319","pull_request_review_id":18196074,"id":97582319,"diff_hunk":"@@ -0,0 +1,60 @@\n+<?php\n+/**\n+ * Plugin Name:     The Events Calendar Extension: Hide Others Linked Posts\n+ * Description:     In Community Events this will hide the linked posts such as \"Organizers\" and \"Venues\" that were not created by the current user.\n+ * Version:         1.0.0\n+ * Extension Class: Tribe__Extension__Hide_Linked_Posts\n+ * Author:          Modern Tribe, Inc.\n+ * Author URI:      http://m.tri.be/1971\n+ * License:         GPLv2 or later\n+ * License URI:     https://www.gnu.org/licenses/gpl-2.0.html\n+ */\n+\n+// Do not load directly.\n+if ( ! defined( 'ABSPATH' ) ) {\n+\tdie( '-1' );\n+}\n+\n+// Do not load unless Tribe Common is fully loaded.\n+if ( ! class_exists( 'Tribe__Extension' ) ) {\n+\treturn;\n+}\n+\n+/**\n+ * Extension main class, class begins loading on init() function.\n+ */\n+class Tribe__Extension__Hide_Linked_Posts extends Tribe__Extension {\n+\n+\t/**\n+\t * Setup the Extension's properties.\n+\t *\n+\t * This always executes even if the required plugins are not present.\n+\t */\n+\tpublic function construct() {\n+\t\t$this->add_required_plugin( 'Tribe__Events__Main' );\n+\t\t$this->add_required_plugin( 'Tribe__Events__Community__Main', '4.2' );\n+\n+\t\t$this->set_url( 'https://theeventscalendar.com/extensions/hide-others-linked-posts/' );\n+\t}\n+\n+\t/**\n+\t * Extension initialization and hooks.\n+\t */\n+\tpublic function init() {\n+\t\tadd_filter( 'tribe_events_linked_posts_query', array( $this, 'hide_linked_posts' ), 10, 2 );","path":"tribe-ext-hide-linked-posts/index.php","position":null,"original_position":44,"commit_id":"24610f98b13da5f4f8a819e81a1c8b6f9203431c","original_commit_id":"346e59dc9cbcc230c174098fd34d4cc544afd3ff","user":{"login":"elimn","id":2893625,"avatar_url":"https://avatars.githubusercontent.com/u/2893625?v=3","gravatar_id":"","url":"https://api.github.com/users/elimn","html_url":"https://github.com/elimn","followers_url":"https://api.github.com/users/elimn/followers","following_url":"https://api.github.com/users/elimn/following{/other_user}","gists_url":"https://api.github.com/users/elimn/gists{/gist_id}","starred_url":"https://api.github.com/users/elimn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elimn/subscriptions","organizations_url":"https://api.github.com/users/elimn/orgs","repos_url":"https://api.github.com/users/elimn/repos","events_url":"https://api.github.com/users/elimn/events{/privacy}","received_events_url":"https://api.github.com/users/elimn/received_events","type":"User","site_admin":false},"body":"Good point. Pardon my belated response. I was mistakenly thinking this was still awaiting review.","created_at":"2017-01-24T16:05:44Z","updated_at":"2017-01-24T16:05:44Z","html_url":"https://github.com/moderntribe/products-extensions/pull/26#discussion_r97582319","pull_request_url":"https://api.github.com/repos/moderntribe/products-extensions/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/moderntribe/products-extensions/pulls/comments/97582319"},"html":{"href":"https://github.com/moderntribe/products-extensions/pull/26#discussion_r97582319"},"pull_request":{"href":"https://api.github.com/repos/moderntribe/products-extensions/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/moderntribe/products-extensions/pulls/26","id":99775245,"html_url":"https://github.com/moderntribe/products-extensions/pull/26","diff_url":"https://github.com/moderntribe/products-extensions/pull/26.diff","patch_url":"https://github.com/moderntribe/products-extensions/pull/26.patch","issue_url":"https://api.github.com/repos/moderntribe/products-extensions/issues/26","number":26,"state":"open","locked":false,"title":"Added tribe-ext-hide-linked-posts","user":{"login":"elimn","id":2893625,"avatar_url":"https://avatars.githubusercontent.com/u/2893625?v=3","gravatar_id":"","url":"https://api.github.com/users/elimn","html_url":"https://github.com/elimn","followers_url":"https://api.github.com/users/elimn/followers","following_url":"https://api.github.com/users/elimn/following{/other_user}","gists_url":"https://api.github.com/users/elimn/gists{/gist_id}","starred_url":"https://api.github.com/users/elimn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elimn/subscriptions","organizations_url":"https://api.github.com/users/elimn/orgs","repos_url":"https://api.github.com/users/elimn/repos","events_url":"https://api.github.com/users/elimn/events{/privacy}","received_events_url":"https://api.github.com/users/elimn/received_events","type":"User","site_admin":false},"body":"In Community Events this will hide the linked posts such as \"Organizers\" and \"Venues\" that were not created by the current user.","created_at":"2016-12-30T18:57:18Z","updated_at":"2017-01-24T16:05:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b21f324c1484f7da8a6af71556ec0f80be183d1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/moderntribe/products-extensions/pulls/26/commits","review_comments_url":"https://api.github.com/repos/moderntribe/products-extensions/pulls/26/comments","review_comment_url":"https://api.github.com/repos/moderntribe/products-extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moderntribe/products-extensions/issues/26/comments","statuses_url":"https://api.github.com/repos/moderntribe/products-extensions/statuses/24610f98b13da5f4f8a819e81a1c8b6f9203431c","head":{"label":"moderntribe:tribe-ext-hide-linked-posts","ref":"tribe-ext-hide-linked-posts","sha":"24610f98b13da5f4f8a819e81a1c8b6f9203431c","user":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"repo":{"id":73845060,"name":"products-extensions","full_name":"moderntribe/products-extensions","owner":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moderntribe/products-extensions","description":"Official extensions for The Events Calendar, Event Tickets, and their premium add-ons.","fork":false,"url":"https://api.github.com/repos/moderntribe/products-extensions","forks_url":"https://api.github.com/repos/moderntribe/products-extensions/forks","keys_url":"https://api.github.com/repos/moderntribe/products-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moderntribe/products-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moderntribe/products-extensions/teams","hooks_url":"https://api.github.com/repos/moderntribe/products-extensions/hooks","issue_events_url":"https://api.github.com/repos/moderntribe/products-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/moderntribe/products-extensions/events","assignees_url":"https://api.github.com/repos/moderntribe/products-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/moderntribe/products-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/moderntribe/products-extensions/tags","blobs_url":"https://api.github.com/repos/moderntribe/products-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moderntribe/products-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moderntribe/products-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/moderntribe/products-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moderntribe/products-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/moderntribe/products-extensions/languages","stargazers_url":"https://api.github.com/repos/moderntribe/products-extensions/stargazers","contributors_url":"https://api.github.com/repos/moderntribe/products-extensions/contributors","subscribers_url":"https://api.github.com/repos/moderntribe/products-extensions/subscribers","subscription_url":"https://api.github.com/repos/moderntribe/products-extensions/subscription","commits_url":"https://api.github.com/repos/moderntribe/products-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/moderntribe/products-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/moderntribe/products-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/moderntribe/products-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/moderntribe/products-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/moderntribe/products-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moderntribe/products-extensions/merges","archive_url":"https://api.github.com/repos/moderntribe/products-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moderntribe/products-extensions/downloads","issues_url":"https://api.github.com/repos/moderntribe/products-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/moderntribe/products-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/moderntribe/products-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/moderntribe/products-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moderntribe/products-extensions/labels{/name}","releases_url":"https://api.github.com/repos/moderntribe/products-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/moderntribe/products-extensions/deployments","created_at":"2016-11-15T18:53:21Z","updated_at":"2017-01-06T16:56:34Z","pushed_at":"2017-01-24T16:05:19Z","git_url":"git://github.com/moderntribe/products-extensions.git","ssh_url":"git@github.com:moderntribe/products-extensions.git","clone_url":"https://github.com/moderntribe/products-extensions.git","svn_url":"https://github.com/moderntribe/products-extensions","homepage":"http://theeventscalendar.com/extensions","size":84,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"moderntribe:master","ref":"master","sha":"fd6df0b7a477180810a19c7f737d51009cb9fd0f","user":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"repo":{"id":73845060,"name":"products-extensions","full_name":"moderntribe/products-extensions","owner":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moderntribe/products-extensions","description":"Official extensions for The Events Calendar, Event Tickets, and their premium add-ons.","fork":false,"url":"https://api.github.com/repos/moderntribe/products-extensions","forks_url":"https://api.github.com/repos/moderntribe/products-extensions/forks","keys_url":"https://api.github.com/repos/moderntribe/products-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moderntribe/products-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moderntribe/products-extensions/teams","hooks_url":"https://api.github.com/repos/moderntribe/products-extensions/hooks","issue_events_url":"https://api.github.com/repos/moderntribe/products-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/moderntribe/products-extensions/events","assignees_url":"https://api.github.com/repos/moderntribe/products-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/moderntribe/products-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/moderntribe/products-extensions/tags","blobs_url":"https://api.github.com/repos/moderntribe/products-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moderntribe/products-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moderntribe/products-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/moderntribe/products-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moderntribe/products-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/moderntribe/products-extensions/languages","stargazers_url":"https://api.github.com/repos/moderntribe/products-extensions/stargazers","contributors_url":"https://api.github.com/repos/moderntribe/products-extensions/contributors","subscribers_url":"https://api.github.com/repos/moderntribe/products-extensions/subscribers","subscription_url":"https://api.github.com/repos/moderntribe/products-extensions/subscription","commits_url":"https://api.github.com/repos/moderntribe/products-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/moderntribe/products-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/moderntribe/products-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/moderntribe/products-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/moderntribe/products-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/moderntribe/products-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moderntribe/products-extensions/merges","archive_url":"https://api.github.com/repos/moderntribe/products-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moderntribe/products-extensions/downloads","issues_url":"https://api.github.com/repos/moderntribe/products-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/moderntribe/products-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/moderntribe/products-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/moderntribe/products-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moderntribe/products-extensions/labels{/name}","releases_url":"https://api.github.com/repos/moderntribe/products-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/moderntribe/products-extensions/deployments","created_at":"2016-11-15T18:53:21Z","updated_at":"2017-01-06T16:56:34Z","pushed_at":"2017-01-24T16:05:19Z","git_url":"git://github.com/moderntribe/products-extensions.git","ssh_url":"git@github.com:moderntribe/products-extensions.git","clone_url":"https://github.com/moderntribe/products-extensions.git","svn_url":"https://github.com/moderntribe/products-extensions","homepage":"http://theeventscalendar.com/extensions","size":84,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moderntribe/products-extensions/pulls/26"},"html":{"href":"https://github.com/moderntribe/products-extensions/pull/26"},"issue":{"href":"https://api.github.com/repos/moderntribe/products-extensions/issues/26"},"comments":{"href":"https://api.github.com/repos/moderntribe/products-extensions/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/moderntribe/products-extensions/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/moderntribe/products-extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moderntribe/products-extensions/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/moderntribe/products-extensions/statuses/24610f98b13da5f4f8a819e81a1c8b6f9203431c"}}}}
{"actor":{"display_login":"elimn"}}