Skip to content

Commit dd2d109

Browse files
committed
only log if user is different
1 parent ea04b92 commit dd2d109

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

files_wbb/lib/action/ChangeAuthorAction.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ public function handle(ServerRequestInterface $request): ResponseInterface
6767
$this->changePostOwner($post, $user);
6868
$this->changeThreadOwner($post, $thread, $user, $oldUser);
6969

70-
PostAuthorModificationLogHandler::getInstance()->changeAuthor($post);
70+
if ($user->userID != $oldUser->userID) {
71+
PostAuthorModificationLogHandler::getInstance()->changeAuthor($post);
72+
}
7173

7274
return new JsonResponse([]);
7375
} else {

0 commit comments

Comments
 (0)