Fix removing reactions on guests content
authorjoshuaruesweg <ruesweg@woltlab.com>
Mon, 27 Sep 2021 11:16:31 +0000 (13:16 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Mon, 27 Sep 2021 11:35:30 +0000 (13:35 +0200)
commit6eab41377a8b8937c1b70dbbc31fa784740abf4b
treed3fa71ba6df148d521ca90f54121653608ff568f
parentc5836714a650c8b2c655a7532095c9e40ca4f025
Fix removing reactions on guests content

Since MySQL 8 the deletion of reactions on contents created by guests might fail. The ReactionHandler tries to update the likesReceived column for a non-existent user, sending the empty string as the userID. Recent versions of MySQL 8 error out with MySQL error 1292. The following MySQL bug appears to be related:

https://bugs.mysql.com/bug.php?id=101806
wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php