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

XFA

Well-known member
Affected version
2.1.3
In _postDelete of the entity, you are doing:
PHP:
/** @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.

Clément
 
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.
 
Top Bottom