Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/99619
Change subject: Send Thanks log entries to UDP
......................................................................
Send Thanks log entries to UDP
Change-Id: I57ff962f1f53b2236265381132c396fcd7ce8e20
---
M ApiThank.php
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Thanks
refs/changes/19/99619/1
diff --git a/ApiThank.php b/ApiThank.php
index 5568ef6..cc092b0 100644
--- a/ApiThank.php
+++ b/ApiThank.php
@@ -126,7 +126,8 @@
$logEntry->setPerformer( $user );
$target = $recipient->getUserPage();
$logEntry->setTarget( $target );
- $logEntry->insert();
+ $logId = $logEntry->insert();
+ $logEntry->publish( $logId, 'udp' );
}
}
--
To view, visit https://gerrit.wikimedia.org/r/99619
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I57ff962f1f53b2236265381132c396fcd7ce8e20
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Thanks
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits