From: robin Date: Sat, 10 May 2014 01:41:16 +0000 (+0200) Subject: Link to diff in contribution feed X-Git-Tag: 1.31.0-rc.0~15795 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=5b5fe8d73bdb18c1b78423565766c358e7aa0b05;p=lhc%2Fweb%2Fwiklou.git Link to diff in contribution feed Link to the actual differences in the API contributions feed. Related to bug 10268 (which is for watchlist, which already has this as an option disabled by default). Change-Id: Ie33e2ba90e7a7566d0e0925220b8fd12b1928513 --- diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index 6f7121b8ac..afd5a1320c 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -112,7 +112,7 @@ class ApiFeedContributions extends ApiBase { return new FeedItem( $title->getPrefixedText(), $this->feedItemDesc( $revision ), - $title->getFullURL(), + $title->getFullURL( array( 'diff' => $revision->getId() ) ), $date, $this->feedItemAuthor( $revision ), $comments