Hello,
It would be nice to have an API that returns the latest comments on the whole wiki.
Hello,
It would be nice to have an API that returns the latest comments on the whole wiki.
I currently use this to get the latest comment on each page:
$dbr = wfGetDB(DB_SLAVE); $res = $dbr->select( ['Comments', 'page'], ['Comment_Page_ID', 'Comment_Date', 'Comment_Text'], 'page_id IS NOT NULL', null, ['ORDER BY' => 'Comment_Date DESC'], [ 'page' => [ 'LEFT JOIN', 'Comment_Page_ID = page_id', ], ] );
But it would be cleaner to have an API.
Would you be interested in a patch that adds an API for that?
Hi! My apologies for the late response, but I greatly appreciate your contribution! You can learn how to submit patches yourself by reading some of the following stuff:
Contributions are greatly appreciated as always :)