Adding $a->getBaseURL for Worker in profile_photo

Adding a TODO for Contact::magicLink
This commit is contained in:
Philipp Holzer 2018-10-20 01:00:01 +02:00
parent 34989480e1
commit 363d00cc45
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
3 changed files with 10 additions and 2 deletions

View file

@ -126,7 +126,7 @@ function profile_photo_post(App $a)
info(L10n::t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL);
// Update global directory in background
if ($path && strlen(Config::get('system', 'directory'))) {
Worker::add(PRIORITY_LOW, "Directory", $path);
Worker::add(PRIORITY_LOW, "Directory", $a->getBaseURL() . '/' . $path);
}
Worker::add(PRIORITY_LOW, 'ProfileUpdate', local_user());