Extension:SocialProfile/API/Avatar removal
Since late May 2024 (6acb1e7956ae33dbcb45928b14b888d72efe2d5e), SocialProfile has included an api.php module for removing a user's avatar, as well as a corresponding api.php
module for uploading an avatar. These modules are essentially the api.php
versions of the pre-existing Special:UploadAvatar
and Special:RemoveAvatar
pages.
removeavatar | |
---|---|
Allows removing an avatar; if you have the avatarremove user right, you can remove other user's avatars as well, but if you lack it, you can remove only your own avatar. This module cannot be used as a generator. | |
Prefix | |
Required rights | avatarremove |
Post only? | Yes |
Generated help | Current |
This API module allows to remove a user's avatar image. If the user has the avatarremove
user right, they can remove other users' avatar images; if they don't have it, then they can remove only their own avatar image.
- Parameters
user
: If the user has the avatarremove user right, this is the name of the user whose avatar is to be removed. If they don't have the user right, this parameter is ignored and the module will simply default to the current user.