{"action":"created","comment":{"url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/comments/158585304","pull_request_review_id":85426030,"id":158585304,"diff_hunk":"@@ -210,7 +210,16 @@ public static function parsedArticle( Title $title, $feed = false ) {\n \t\t$parser->startExternalParse( $title, $parserOpt, Parser::OT_HTML );\n \n \t\t# Parse article.\n-\t\t$arttext = $article->getText();\n+\t\t$articleContent = $article->getContent();\n+\t\tif ( !($articleContent instanceof TextContent) ){\n+\t\t\t# Restore default behavior.","path":"WikilogUtils.php","position":7,"original_position":7,"commit_id":"97d1e066e07d6b8c4a0942c4e7c95a7bb0eff65c","original_commit_id":"97d1e066e07d6b8c4a0942c4e7c95a7bb0eff65c","user":{"login":"refeed","id":20320125,"avatar_url":"https://avatars1.githubusercontent.com/u/20320125?v=4","gravatar_id":"","url":"https://api.github.com/users/refeed","html_url":"https://github.com/refeed","followers_url":"https://api.github.com/users/refeed/followers","following_url":"https://api.github.com/users/refeed/following{/other_user}","gists_url":"https://api.github.com/users/refeed/gists{/gist_id}","starred_url":"https://api.github.com/users/refeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refeed/subscriptions","organizations_url":"https://api.github.com/users/refeed/orgs","repos_url":"https://api.github.com/users/refeed/repos","events_url":"https://api.github.com/users/refeed/events{/privacy}","received_events_url":"https://api.github.com/users/refeed/received_events","type":"User","site_admin":false},"body":"From line 230, I think we need to restore the default behavior (I think it's related to the parser).\r\n```\r\n\t/**\r\n\t * Enable special wikilog feed parsing.\r\n\t *\r\n\t * This function changes the parser behavior in order to output\r\n\t *\r\n\t * The proper way to use this function is:\r\n\t * @code\r\n\t *   $saveFeedParse = WikilogParser::enableFeedParsing();\r\n\t *   # ...code that uses $wgParser in order to parse articles...\r\n\t *   WikilogParser::enableFeedParsing( $saveFeedParse );\r\n\t * @endcode\r\n\t *\r\n\t * @note Using this function changes the behavior of Parser. When enabled,\r\n\t *   parsed content should be cached under a different key.\r\n\t */\r\n\tpublic static function enableFeedParsing( $enable = true ) {\r\n\t\t$prev = self::$feedParsing;\r\n\t\tself::$feedParsing = $enable;\r\n\t\treturn $prev;\r\n\t}\r\n```","created_at":"2017-12-23T16:46:03Z","updated_at":"2017-12-23T16:46:03Z","html_url":"https://github.com/mediawiki4intranet/Wikilog/pull/21#discussion_r158585304","pull_request_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/21","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/comments/158585304"},"html":{"href":"https://github.com/mediawiki4intranet/Wikilog/pull/21#discussion_r158585304"},"pull_request":{"href":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/21","id":159970460,"html_url":"https://github.com/mediawiki4intranet/Wikilog/pull/21","diff_url":"https://github.com/mediawiki4intranet/Wikilog/pull/21.diff","patch_url":"https://github.com/mediawiki4intranet/Wikilog/pull/21.patch","issue_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/issues/21","number":21,"state":"open","locked":false,"title":"WikilogUtils: Replace WikiPage::getText() with getContent()","user":{"login":"refeed","id":20320125,"avatar_url":"https://avatars1.githubusercontent.com/u/20320125?v=4","gravatar_id":"","url":"https://api.github.com/users/refeed","html_url":"https://github.com/refeed","followers_url":"https://api.github.com/users/refeed/followers","following_url":"https://api.github.com/users/refeed/following{/other_user}","gists_url":"https://api.github.com/users/refeed/gists{/gist_id}","starred_url":"https://api.github.com/users/refeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refeed/subscriptions","organizations_url":"https://api.github.com/users/refeed/orgs","repos_url":"https://api.github.com/users/refeed/repos","events_url":"https://api.github.com/users/refeed/events{/privacy}","received_events_url":"https://api.github.com/users/refeed/received_events","type":"User","site_admin":false},"body":"Replace `WikiPage::getText()` with\r\n`WikiPage::getContent()->getNativeData()` in\r\n`WikilogUtils.php`, since `WikiPage::getText()` had been removed\r\nfrom `WikiPage`.\r\n\r\nBug: T179532","created_at":"2017-12-23T14:45:13Z","updated_at":"2017-12-23T16:46:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21e17750feb9473ac48ff1cfdc416c9d93715ed3","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/21/commits","review_comments_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/21/comments","review_comment_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/issues/21/comments","statuses_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/statuses/97d1e066e07d6b8c4a0942c4e7c95a7bb0eff65c","head":{"label":"refeed:fix_deprecated_gettext_method","ref":"fix_deprecated_gettext_method","sha":"97d1e066e07d6b8c4a0942c4e7c95a7bb0eff65c","user":{"login":"refeed","id":20320125,"avatar_url":"https://avatars1.githubusercontent.com/u/20320125?v=4","gravatar_id":"","url":"https://api.github.com/users/refeed","html_url":"https://github.com/refeed","followers_url":"https://api.github.com/users/refeed/followers","following_url":"https://api.github.com/users/refeed/following{/other_user}","gists_url":"https://api.github.com/users/refeed/gists{/gist_id}","starred_url":"https://api.github.com/users/refeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refeed/subscriptions","organizations_url":"https://api.github.com/users/refeed/orgs","repos_url":"https://api.github.com/users/refeed/repos","events_url":"https://api.github.com/users/refeed/events{/privacy}","received_events_url":"https://api.github.com/users/refeed/received_events","type":"User","site_admin":false},"repo":{"id":115194209,"name":"Wikilog","full_name":"refeed/Wikilog","owner":{"login":"refeed","id":20320125,"avatar_url":"https://avatars1.githubusercontent.com/u/20320125?v=4","gravatar_id":"","url":"https://api.github.com/users/refeed","html_url":"https://github.com/refeed","followers_url":"https://api.github.com/users/refeed/followers","following_url":"https://api.github.com/users/refeed/following{/other_user}","gists_url":"https://api.github.com/users/refeed/gists{/gist_id}","starred_url":"https://api.github.com/users/refeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refeed/subscriptions","organizations_url":"https://api.github.com/users/refeed/orgs","repos_url":"https://api.github.com/users/refeed/repos","events_url":"https://api.github.com/users/refeed/events{/privacy}","received_events_url":"https://api.github.com/users/refeed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/refeed/Wikilog","description":"Heavily improved Wikilog extension","fork":true,"url":"https://api.github.com/repos/refeed/Wikilog","forks_url":"https://api.github.com/repos/refeed/Wikilog/forks","keys_url":"https://api.github.com/repos/refeed/Wikilog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/refeed/Wikilog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/refeed/Wikilog/teams","hooks_url":"https://api.github.com/repos/refeed/Wikilog/hooks","issue_events_url":"https://api.github.com/repos/refeed/Wikilog/issues/events{/number}","events_url":"https://api.github.com/repos/refeed/Wikilog/events","assignees_url":"https://api.github.com/repos/refeed/Wikilog/assignees{/user}","branches_url":"https://api.github.com/repos/refeed/Wikilog/branches{/branch}","tags_url":"https://api.github.com/repos/refeed/Wikilog/tags","blobs_url":"https://api.github.com/repos/refeed/Wikilog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/refeed/Wikilog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/refeed/Wikilog/git/refs{/sha}","trees_url":"https://api.github.com/repos/refeed/Wikilog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/refeed/Wikilog/statuses/{sha}","languages_url":"https://api.github.com/repos/refeed/Wikilog/languages","stargazers_url":"https://api.github.com/repos/refeed/Wikilog/stargazers","contributors_url":"https://api.github.com/repos/refeed/Wikilog/contributors","subscribers_url":"https://api.github.com/repos/refeed/Wikilog/subscribers","subscription_url":"https://api.github.com/repos/refeed/Wikilog/subscription","commits_url":"https://api.github.com/repos/refeed/Wikilog/commits{/sha}","git_commits_url":"https://api.github.com/repos/refeed/Wikilog/git/commits{/sha}","comments_url":"https://api.github.com/repos/refeed/Wikilog/comments{/number}","issue_comment_url":"https://api.github.com/repos/refeed/Wikilog/issues/comments{/number}","contents_url":"https://api.github.com/repos/refeed/Wikilog/contents/{+path}","compare_url":"https://api.github.com/repos/refeed/Wikilog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/refeed/Wikilog/merges","archive_url":"https://api.github.com/repos/refeed/Wikilog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/refeed/Wikilog/downloads","issues_url":"https://api.github.com/repos/refeed/Wikilog/issues{/number}","pulls_url":"https://api.github.com/repos/refeed/Wikilog/pulls{/number}","milestones_url":"https://api.github.com/repos/refeed/Wikilog/milestones{/number}","notifications_url":"https://api.github.com/repos/refeed/Wikilog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/refeed/Wikilog/labels{/name}","releases_url":"https://api.github.com/repos/refeed/Wikilog/releases{/id}","deployments_url":"https://api.github.com/repos/refeed/Wikilog/deployments","created_at":"2017-12-23T12:29:48Z","updated_at":"2017-12-23T12:29:49Z","pushed_at":"2017-12-23T16:43:03Z","git_url":"git://github.com/refeed/Wikilog.git","ssh_url":"git@github.com:refeed/Wikilog.git","clone_url":"https://github.com/refeed/Wikilog.git","svn_url":"https://github.com/refeed/Wikilog","homepage":"http://wiki.4intra.net/Wikilog","size":1122,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mediawiki4intranet:master","ref":"master","sha":"04cc110daf13c88e984d8bf8517d57db74edafd5","user":{"login":"mediawiki4intranet","id":2844773,"avatar_url":"https://avatars2.githubusercontent.com/u/2844773?v=4","gravatar_id":"","url":"https://api.github.com/users/mediawiki4intranet","html_url":"https://github.com/mediawiki4intranet","followers_url":"https://api.github.com/users/mediawiki4intranet/followers","following_url":"https://api.github.com/users/mediawiki4intranet/following{/other_user}","gists_url":"https://api.github.com/users/mediawiki4intranet/gists{/gist_id}","starred_url":"https://api.github.com/users/mediawiki4intranet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediawiki4intranet/subscriptions","organizations_url":"https://api.github.com/users/mediawiki4intranet/orgs","repos_url":"https://api.github.com/users/mediawiki4intranet/repos","events_url":"https://api.github.com/users/mediawiki4intranet/events{/privacy}","received_events_url":"https://api.github.com/users/mediawiki4intranet/received_events","type":"Organization","site_admin":false},"repo":{"id":6804573,"name":"Wikilog","full_name":"mediawiki4intranet/Wikilog","owner":{"login":"mediawiki4intranet","id":2844773,"avatar_url":"https://avatars2.githubusercontent.com/u/2844773?v=4","gravatar_id":"","url":"https://api.github.com/users/mediawiki4intranet","html_url":"https://github.com/mediawiki4intranet","followers_url":"https://api.github.com/users/mediawiki4intranet/followers","following_url":"https://api.github.com/users/mediawiki4intranet/following{/other_user}","gists_url":"https://api.github.com/users/mediawiki4intranet/gists{/gist_id}","starred_url":"https://api.github.com/users/mediawiki4intranet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediawiki4intranet/subscriptions","organizations_url":"https://api.github.com/users/mediawiki4intranet/orgs","repos_url":"https://api.github.com/users/mediawiki4intranet/repos","events_url":"https://api.github.com/users/mediawiki4intranet/events{/privacy}","received_events_url":"https://api.github.com/users/mediawiki4intranet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mediawiki4intranet/Wikilog","description":"Heavily improved Wikilog extension","fork":false,"url":"https://api.github.com/repos/mediawiki4intranet/Wikilog","forks_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/forks","keys_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/teams","hooks_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/hooks","issue_events_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/issues/events{/number}","events_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/events","assignees_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/assignees{/user}","branches_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/branches{/branch}","tags_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/tags","blobs_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/git/refs{/sha}","trees_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/statuses/{sha}","languages_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/languages","stargazers_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/stargazers","contributors_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/contributors","subscribers_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/subscribers","subscription_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/subscription","commits_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/commits{/sha}","git_commits_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/git/commits{/sha}","comments_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/comments{/number}","issue_comment_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/issues/comments{/number}","contents_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/contents/{+path}","compare_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/merges","archive_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/downloads","issues_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/issues{/number}","pulls_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls{/number}","milestones_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/milestones{/number}","notifications_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/labels{/name}","releases_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/releases{/id}","deployments_url":"https://api.github.com/repos/mediawiki4intranet/Wikilog/deployments","created_at":"2012-11-21T23:00:39Z","updated_at":"2017-06-10T21:33:01Z","pushed_at":"2017-12-23T16:43:04Z","git_url":"git://github.com/mediawiki4intranet/Wikilog.git","ssh_url":"git@github.com:mediawiki4intranet/Wikilog.git","clone_url":"https://github.com/mediawiki4intranet/Wikilog.git","svn_url":"https://github.com/mediawiki4intranet/Wikilog","homepage":"http://wiki.4intra.net/Wikilog","size":1121,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":8,"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"},"forks":7,"open_issues":8,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/21"},"html":{"href":"https://github.com/mediawiki4intranet/Wikilog/pull/21"},"issue":{"href":"https://api.github.com/repos/mediawiki4intranet/Wikilog/issues/21"},"comments":{"href":"https://api.github.com/repos/mediawiki4intranet/Wikilog/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mediawiki4intranet/Wikilog/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/mediawiki4intranet/Wikilog/statuses/97d1e066e07d6b8c4a0942c4e7c95a7bb0eff65c"}},"author_association":"NONE"}}
{"actor":{"display_login":"refeed"}}