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:
Kunal Mehta 2013-10-18 21:44:03 -07:00
parent fb18eededc
commit 5d772ad76b

View file

@ -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();
} }