Link to diff in contribution feed
authorrobin <robinp.1273@gmail.com>
Sat, 10 May 2014 01:41:16 +0000 (03:41 +0200)
committerReedy <reedy@wikimedia.org>
Sat, 10 May 2014 14:41:43 +0000 (14:41 +0000)
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

includes/api/ApiFeedContributions.php

index 6f7121b..afd5a13 100644 (file)
@@ -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