Skip to content

Commit

Permalink
Avatars: Use old location for servers <10 #6279
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed Jan 9, 2018
1 parent 9078d9c commit e389fca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libsync/networkjobs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e389fca

Please sign in to comment.