Overview
Comment:NextCloud: Use new method signature
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: 2347e7a3d3e0fb15f37ed0142238c6b9ebba0a1440f68c1ea88dac29cb864935
User & Date: bohwaz on 2022-11-27 21:57:26
Other Links: branch diff | manifest | tags
Context
2022-11-28
16:28
Fix file datetime in touch for SQLite storage backend check-in: 3813b1894e user: bohwaz tags: dev
2022-11-27
21:57
NextCloud: Use new method signature check-in: 2347e7a3d3 user: bohwaz tags: dev
21:49
Finally found the issue with NextCloud Android and thumbnails, it's fixed check-in: 1c9151c6e2 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Files/WebDAV/NextCloud.php from [4b1e5dbc60] to [98ea2e4b65].

197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
			$this->deleteChunks($login, $name);
			Utils::safe_unlink($tmp_file);
		}

		return ['created' => !$exists, 'etag' => $file->etag()];
	}

	public function serveThumbnail(string $uri, int $width, int $height, bool $crop = false): void
	{
		if (!preg_match('/\.(?:jpe?g|gif|png|webp)$/', $uri)) {
			http_response_code(404);
			return;
		}

		$this->requireAuth();







|







197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
			$this->deleteChunks($login, $name);
			Utils::safe_unlink($tmp_file);
		}

		return ['created' => !$exists, 'etag' => $file->etag()];
	}

	public function serveThumbnail(string $uri, int $width, int $height, bool $crop = false, bool $preview = false): void
	{
		if (!preg_match('/\.(?:jpe?g|gif|png|webp)$/', $uri)) {
			http_response_code(404);
			return;
		}

		$this->requireAuth();