Skip to content

Commit

Permalink
Merge pull request #593 from nextcloud/fix/fill-empty-templates
Browse files Browse the repository at this point in the history
fix: Properly create new files on public share links
  • Loading branch information
blizzz authored Oct 2, 2024
2 parents 602820e + e4621ec commit e2d76f8
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 e2d76f8

Please sign in to comment.