Page MenuHomePhabricator

$wgUploadBaseUrl not honored for Avatars
Open, Needs TriagePublic


Our wiki uses $wgUploadBaseUrl because uploads are on a separate domain, using a CDN. However, $wgUploadBaseUrl is not honored in Avatars, serving all images under $wgUploadPathwhich of course finds nothing since our images are not inside the wiki directory.

This is what I see in the getAvatarURL method:

$defaultParams = [
	'src' => "{$wgUploadPath}/avatars/{$this->getAvatarImage()}",
	'border' => '0',
	'class' => 'mw-socialprofile-avatar'

Event Timeline

Restricted Application added a project: Social-Tools. · View Herald TranscriptJul 22 2018, 11:44 AM

Change 447230 had a related patch set uploaded (by Martineznovo; owner: Martineznovo):
[mediawiki/extensions/SocialProfile@master] Use $wgUploadBaseUrl for wikis where it's defined

Change 447230 merged by jenkins-bot:
[mediawiki/extensions/SocialProfile@master] Use $wgUploadBaseUrl for wikis where it's defined