mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-04-16 20:55:01 +02:00
Fix exception when restoring files from trash
This commit is contained in:
parent
aac86d8590
commit
d8048b2004
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ class RestoreTrashbin {
|
||||||
static bool require(DiContainer c) => true;
|
static bool require(DiContainer c) => true;
|
||||||
|
|
||||||
Future<void> call(Account account, File file) async {
|
Future<void> call(Account account, File file) async {
|
||||||
await Move(_c)(
|
// we don't cache the trashbin
|
||||||
|
await Move(_c.withRemoteRepo())(
|
||||||
account,
|
account,
|
||||||
file,
|
file,
|
||||||
"remote.php/dav/trashbin/${account.userId}/restore/${file.filename}",
|
"remote.php/dav/trashbin/${account.userId}/restore/${file.filename}",
|
||||||
|
|
Loading…
Add table
Reference in a new issue