[Liam W] (RIP) Member Self Delete

[Liam W] (RIP) Member Self Delete 2.0.5 Patch Level 7

No permission to download
Yeah... Works fine... Made test user for registered group... Perfect plugin to make easier user deletion who is under European Union xD


lol researched Google about LiamW... Sad 22 y old only :( In past he was valuable member for XenForo what i found :(
 
Last edited:
Hi @Painbaker,

thanks for keeping this add-on alive. I found a small bug in version 2.0.5 Patch Level 7 (XenForo 2.3.14).

Setup: Deletion method "Disable" with a 30-day grace period, "Remove avatar" enabled, deleted users are moved to a secondary user group.

Problem: When the deletion runs after the grace period, uploaded avatars are removed correctly, but Gravatars are not. Deleted accounts keep showing their Gravatar.

Cause: In src/addons/LiamW/AccountDelete/Service/AccountDelete.php, finaliseDeleteDisable() only checks avatar_date:

if ($this->removeAvatar && $this->user->avatar_date)

For users with a Gravatar, avatar_date is 0 and only the gravatar field is set, so the block is skipped.

Suggested fix:

if ($this->removeAvatar && ($this->user->avatar_date || $this->user->gravatar))

As far as I know, XF\Service\User\Avatar::deleteAvatar() also clears the gravatar field, so no other change should be needed.

Accounts that were already processed keep their Gravatar and need to be cleaned up manually.

Thanks!
 
Back
Top Bottom