镜像自地址
https://github.com/nextcloud/server.git
已同步 2024-08-26 05:54:48 +02:00
Don't trigger activity when the email didn't change
Signed-off-by: Joas Schilling <coding@schilljs.com>
这个提交包含在:
父节点
c1925ddfd0
当前提交
7ef6f065ca
@ -117,6 +117,12 @@ class Hooks {
|
||||
* @throws \BadMethodCallException
|
||||
*/
|
||||
public function onChangeEmail(IUser $user, $oldMailAddress) {
|
||||
|
||||
if ($oldMailAddress === $user->getEMailAddress()) {
|
||||
// Email didn't really change, so don't create activities and emails
|
||||
return;
|
||||
}
|
||||
|
||||
$event = $this->activityManager->generateEvent();
|
||||
$event->setApp('settings')
|
||||
->setType('personal_settings')
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户