mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Fixup the port in server notification URLs
... in addition to fixing up the scheme and host. For example, the survey app sends "/settings/admin/survey_client" as a link. Clicking the "More information" button wouldn't lead to the correct place if NC was running on a custom port.
This commit is contained in:
parent
8367dbc67f
commit
91602574a9
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,9 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j
|
|||
link.setScheme(ai->account()->url().scheme());
|
||||
link.setHost(ai->account()->url().host());
|
||||
}
|
||||
if (link.port() == -1) {
|
||||
link.setPort(ai->account()->url().port());
|
||||
}
|
||||
}
|
||||
a._link = link;
|
||||
a._dateTime = QDateTime::fromString(json.value("datetime").toString(), Qt::ISODate);
|
||||
|
|
Loading…
Reference in a new issue