diff --git a/src/libsync/networkjobs.cpp b/src/libsync/networkjobs.cpp index 6e2b81eb085..93766de1e98 100644 --- a/src/libsync/networkjobs.cpp +++ b/src/libsync/networkjobs.cpp @@ -629,7 +629,11 @@ bool PropfindJob::finished() AvatarJob::AvatarJob(AccountPtr account, QObject *parent) : AbstractNetworkJob(account, QString(), parent) { - _avatarUrl = Utility::concatUrlPath(account->url(), QString("remote.php/dav/avatars/%1/128.png").arg(account->davUser())); + if (account->serverVersionInt() >= Account::makeServerVersion(10, 0, 0)) { + _avatarUrl = Utility::concatUrlPath(account->url(), QString("remote.php/dav/avatars/%1/128.png").arg(account->davUser())); + } else { + _avatarUrl = Utility::concatUrlPath(account->url(), QString("index.php/avatar/%1/128").arg(account->davUser())); + } } void AvatarJob::start()