Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/90688


Change subject: Expose the revid of the event revision in the API
......................................................................

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
---
M api/ApiEchoNotifications.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/88/90688/1

diff --git a/api/ApiEchoNotifications.php b/api/ApiEchoNotifications.php
index a570b61..080b050 100644
--- a/api/ApiEchoNotifications.php
+++ b/api/ApiEchoNotifications.php
@@ -145,6 +145,10 @@
                                );
                        }
 
+                       if ( $event->getRevision() ) {
+                               $thisEvent['revid'] = 
$event->getRevision()->getId();
+                       }
+
                        if ( $row->notification_read_timestamp ) {
                                $thisEvent['read'] = 
$row->notification_read_timestamp;
                        }

-- 
To view, visit https://gerrit.wikimedia.org/r/90688
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I21d0417b9e014ff59f26a94cbcc28f22044a4a39
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to