Introduce ApiFeedContributions::feedItem hook
authorErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 14 Jan 2015 21:52:50 +0000 (13:52 -0800)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Fri, 23 Jan 2015 18:11:22 +0000 (10:11 -0800)
commitdbc3c5306ec74a0f21e17d3f1421458f1e5c6731
treeba4cb3c5cb56896da0a12962701e24707b2df200
parent6e46b4b3803e587e4887afad3f9d6a049bdbf966
Introduce ApiFeedContributions::feedItem hook

ContribsPager, which is used by ApiFeedContributions, can return more
than just revision rows.  This is handled in the html side within the
ContributionsLineEnding hook.  ApiFeedContributions had no special
handling so here I have added a simple hook the provides the data
from ContribsPager and allows subscribers to provide the appropriate
FeedItem instance.

Bug: T85229
Change-Id: I27c77cc682ba801c40361c76b67398108ca1a592
docs/hooks.txt
includes/api/ApiFeedContributions.php