Skip to content

Commit

Permalink
fix: Properly create new files on public share links
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Sep 20, 2024
1 parent b5e9d70 commit e4621ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WOPI/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function getUrlSrcForFile(File $file, bool $edit): string {
}

$actions = [
$edit && $file->getSize() === 0 ? self::ACTION_EDITNEW : null,
$edit && ($file->getSize() === 0 || $file->getSize() === 1) ? self::ACTION_EDITNEW : null,
$edit ? self::ACTION_EDIT : null,
self::ACTION_VIEW,
];
Expand Down

0 comments on commit e4621ec

Please sign in to comment.