mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Fix different user shared same local touch name
This commit is contained in:
parent
9aa770aa4f
commit
708383d291
1 changed files with 2 additions and 2 deletions
|
@ -79,9 +79,9 @@ class TouchTokenManager {
|
|||
String _getLocalStorageName(Account account, File file) {
|
||||
final strippedPath = file.strippedPath;
|
||||
if (strippedPath == ".") {
|
||||
return "touch/${account.url.replaceFirst('://', '_')}/token";
|
||||
return "touch/${account.url.replaceFirst('://', '_')}/${account.username}/token";
|
||||
} else {
|
||||
return "touch/${account.url.replaceFirst('://', '_')}/${file.strippedPath}/token";
|
||||
return "touch/${account.url.replaceFirst('://', '_')}/${account.username}/${file.strippedPath}/token";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue