Skip to content

Commit e6bdd38

Browse files
author
Stephane Bisson
committed
markRead implementation
1 parent dd12b45 commit e6bdd38

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

includes/Models/Email.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ public static function get( $emailAddress, $id ) {
7575
}
7676

7777
public static function markRead( $id ) {
78-
78+
$dbw = MediaWikiServices::getInstance()->getDBLoadBalancer()->getConnection( DB_MASTER );
79+
$dbw->update(
80+
'inbox_email',
81+
[ 'email_read' => 1 ],
82+
[ 'email_id' => $id ]
83+
);
7984
}
8085
}

0 commit comments

Comments
 (0)