]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile_photo.php
Adding $a->getBaseURL for Worker in profile_photo
[friendica.git] / mod / profile_photo.php
index ee4f35f200af6c6286db9e74e2772993ddba9414..19188ba23e884886b5b10ff6a9e6665fc6732ac9 100644 (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());