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!