mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +00:00
Expose the revid of the event revision in the API
So custom applications can generate links to the revision the event is about Change-Id: I21d0417b9e014ff59f26a94cbcc28f22044a4a39
This commit is contained in:
parent
fb18eededc
commit
5d772ad76b
|
@ -87,6 +87,10 @@ class EchoDataOutputFormatter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $event->getRevision() ) {
|
||||||
|
$output['revid'] = $event->getRevision()->getId();
|
||||||
|
}
|
||||||
|
|
||||||
if ( $notification->getReadTimestamp() ) {
|
if ( $notification->getReadTimestamp() ) {
|
||||||
$output['read'] = $notification->getReadTimestamp();
|
$output['read'] = $notification->getReadTimestamp();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue