mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix(shell_integration/macOS/FileProviderExt): Make user agent a parameter of setupDomainAccount
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
4c32fb2718
commit
30bf5ffe03
@ -96,7 +96,11 @@ extension FileProviderExtension: NSFileProviderServicing, ChangeNotificationInte
|
||||
}
|
||||
|
||||
@objc func setupDomainAccount(
|
||||
user: String, userId: String, serverUrl: String, password: String
|
||||
user: String,
|
||||
userId: String,
|
||||
serverUrl: String,
|
||||
password: String,
|
||||
userAgent: String = "Nextcloud-macOS/FileProviderExt"
|
||||
) {
|
||||
let account = Account(user: user, id: userId, serverUrl: serverUrl, password: password)
|
||||
guard account != ncAccount else { return }
|
||||
@ -108,7 +112,7 @@ extension FileProviderExtension: NSFileProviderServicing, ChangeNotificationInte
|
||||
user: user,
|
||||
userId: userId,
|
||||
password: password,
|
||||
userAgent: "Nextcloud-macOS/FileProviderExt",
|
||||
userAgent: userAgent,
|
||||
nextcloudVersion: 25,
|
||||
groupIdentifier: ""
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user