jenkins-bot has submitted this change and it was merged. Change subject: Allow new notifications to be created with old timestamps ......................................................................
Allow new notifications to be created with old timestamps Bug: T93109 Change-Id: Ib9596cc058871a6b27cca7a809efc6b1ca75dfb0 --- M model/Event.php 1 file changed, 5 insertions(+), 1 deletion(-) Approvals: Catrope: Looks good to me, approved jenkins-bot: Verified diff --git a/model/Event.php b/model/Event.php index 235c026..3ff511e 100644 --- a/model/Event.php +++ b/model/Event.php @@ -101,7 +101,11 @@ } $obj->id = false; - $obj->timestamp = wfTimestampNow(); + if ( isset( $info['timestamp'] ) ) { + $obj->timestamp = $info['timestamp']; + } else { + $obj->timestamp = wfTimestampNow(); + } foreach ( $validFields as $field ) { if ( isset( $info[$field] ) ) { -- To view, visit https://gerrit.wikimedia.org/r/200036 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib9596cc058871a6b27cca7a809efc6b1ca75dfb0 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Echo Gerrit-Branch: master Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org> Gerrit-Reviewer: Catrope <roan.katt...@gmail.com> Gerrit-Reviewer: Matthias Mullie <mmul...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits