On WebPlatform Docs we are using Social Profile and we are being link spammed. We are not using all the features and stats of SocialProfile, not even the stats.
When I tried to block spammers to create a profile (e.g. $wgUserProfileThresholds['edit'] = $wgAutoConfirmCount), I realized that I had to setup a SocialProfile feature we don’t want to use for now.
How about it had a simplified treshold mechanism based on MediaWiki internal.
In our case, the right to create a page in the wiki is considered an equivalent right as one of creating a user profile.
To do this, I made this patch:
diff --git a/UserProfile/SpecialUpdateProfile.php b/UserProfile/SpecialUpdateProfile.php index 3ef038c..378cdde 100644 --- a/UserProfile/SpecialUpdateProfile.php +++ b/UserProfile/SpecialUpdateProfile.php @@ -106,6 +106,8 @@ class SpecialUpdateProfile extends UnlistedSpecialPage { } } +$can_create = ($user->isAllowed('createpage'))?true:$can_create; // Suggestion +
Thanks for considering the feature.