Fixed Deleting a thread ban removes alerts of every thread bans made by the moderator

Affected version


Well-known member
In _postDelete of the entity, you are doing:
/** @var \XF\Repository\UserAlert $alertRepo */
$alertRepo = $this->repository('XF:UserAlert');
$alertRepo->fastDeleteAlertsFromUser($this->BannedBy, 'thread', $this->thread_id, 'reply_ban');
It shouldn't be BannedBy but User here.


XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.4).

Change log:
Delete reply ban alerts sent to unbanned user rather than from banning moderator
Any changes made as a result of this issue being resolved may not be rolled out here until later.