Граф коммитов

212 Коммитов

Автор SHA1 Сообщение Дата
Julius Härtl a79b154489 Adjust guest avatar style to be distinguishable from regular users
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-09 11:36:39 +02:00
Julius Härtl e1c0134640 Allow users to reset their guest name
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-09 11:36:39 +02:00
Julius Härtl 738b8e238a Set guest name color also with empty names
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-09 11:36:39 +02:00
Julius Härtl 5e92525093
An empty string is a valid encoded result
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-09 08:59:56 +02:00
Raul a70841ac98 Encode file to UTF-8 on `fetch` call
Signed-off-by: Raul <raul@nextcloud.com>
2022-06-08 23:32:03 +02:00
Vinicius Reis acfb264ae5
⚰️ (#2345): remove unused icons
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-05-27 12:27:54 -03:00
Julien Veyssier 1715a7cadf
move test, add comments for cleanup regexps
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-05-23 19:13:06 +02:00
Julien Veyssier cad9a1d7f6
change image target in markdown content to relative path, handle it in ImageView
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-05-23 16:32:03 +02:00
Raul 42a448c995 Add EncodingService test cases
Signed-off-by: Raul <raul@nextcloud.com>
2022-05-17 09:12:06 +02:00
Raul 4bbb8cc608 Add EncodingService
Signed-off-by: Raul <raul@nextcloud.com>
2022-05-17 09:12:06 +02:00
Julius Härtl 662a8aba4e
Merge pull request #2370 from nextcloud/bugfix/2357
Manually get a mounted instance of the file if needed during lock/unlock
2022-05-10 11:16:47 +02:00
Julien Veyssier c0c29644b5
refs #2338 improve and test ImageService::getUniqueFileName()
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-05-09 18:22:33 +02:00
Julien Veyssier 6759366d12
refs #2338 use '(n)' suffix instead of timestamp prefix to make sure attachment names are unique
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-05-09 12:46:27 +02:00
Julius Härtl b3a882657c
Manually get a mounted instance of the file if needed during lock/unlock
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-05-06 13:12:23 +02:00
Pierre Ozoux ce9daac3d7
Changes menu entry.
We realized with our users that when the apps Text and ONLYOFFICE are installed in parallel, this is a bit confusing.

You can see a screenshot here, in french:
https://forge.liiib.re/indiehost/tech/plateforme/-/issues/217#note_9733

So we propose this change.

In relation to this change in [onlyoffice app](https://github.com/ONLYOFFICE/onlyoffice-nextcloud/pull/617).

Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-04-27 13:28:20 +02:00
Julius Härtl de93bcee44
Use proper file id source for public shares
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-21 16:04:53 +02:00
Julius Härtl ff819afde9
Make psalm happy
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-21 13:27:44 +02:00
Julius Härtl ede33b50d4
Unlock during session cleanup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-21 13:27:44 +02:00
Julius Härtl fa139cfa1b
Also take mtime into account for change detection during editing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-21 13:27:44 +02:00
Julius Härtl 5c9225e886
Expose lock in the text UI
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-21 13:27:44 +02:00
Julius Härtl 53d1012f7f
Open files read only if locked
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-21 13:27:44 +02:00
Julius Härtl 8c00c8eb25
Implement collaborative locking
Signed-off-by: Julius Härtl <jus@bitgrid.net>

TMP: Switch to OCP branch for tests

Signed-off-by: Julius Härtl <jus@bitgrid.net>

Let locked files open in read only

Signed-off-by: Julius Härtl <jus@bitgrid.net>

Adapt LockScope to LockContext rename

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-21 13:27:43 +02:00
Jonas 1e5be8fab1
ImageController: Fix issues spotted by psalm
Signed-off-by: Jonas <jonas@freesources.org>
2022-04-19 11:02:25 +02:00
Julien Veyssier 5bdc049b62 harmonize prop/data names
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-31 10:36:17 +00:00
Julien Veyssier 6f619c0ce4
remove upload by link on server side, fix error management
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-03-31 11:18:46 +02:00
Côme Chilliet 73b27cb871
Fix a deprecation warning about returning bool from comparison function
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-29 10:17:00 +02:00
Julien Veyssier 7e55a798ee
use DataDownloadResponse instead of DataDisplayResponse to serve images
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-03-17 16:38:01 +01:00
Julius Härtl d259209bae Let jsonSerialize have a proper return type
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-15 15:39:30 +01:00
Max fd6395128c performance: fetch content during session creation
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-09 05:23:18 +00:00
Max 3e40b7bce4
fix: DAV only return workspace properties if they are set
Also fix retrieving the file for public shares as proposed by @juliushaertl.

Signed-off-by: Max <max@nextcloud.com>
2022-03-02 08:19:29 +01:00
Max d3315bf32a
fix: workspace with alternative file names
Signed-off-by: Max <max@nextcloud.com>
2022-03-02 08:19:16 +01:00
Julien Veyssier 8785d5e934
add index for last_contact in text_sessions table
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-02-03 13:58:06 +01:00
Julius Härtl 9a89308675
Fix php-cs-fixer style
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-18 10:46:47 +01:00
Julius Härtl 03a74c6654 Annotate mapper class template
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-12 08:36:00 +00:00
Julien Veyssier 466a6b588d
refs #1900 fix image serving in direct editing, avoid passing empty shareToken, use the edition session to get the user ID
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-10 18:17:35 +01:00
Julien Veyssier 342952d2c6
fix some CI errors
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:39 +01:00
Julien Veyssier f65698a7f8
use specific exception on upload error
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:39 +01:00
Julien Veyssier e628527c8a
improve image link generation and getAttachmentNamesFromContent(), implement basic tests
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:39 +01:00
Julien Veyssier dc92e028c2
allow image upload/link-insertion with email links and from a Talk room
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:39 +01:00
Julien Veyssier 6ba9da8a12
safely get image mimetype
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:39 +01:00
Julien Veyssier ef8358be6d
stream uploaded file to the storage with a resource
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:39 +01:00
Julien Veyssier 7eaf9d661f
add check on uploaded image
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:39 +01:00
Julien Veyssier 87944276b9
return 403 when session is invalid
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:39 +01:00
Julien Veyssier d64bb669ef
remove unused param in simpleDownload
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:38 +01:00
Julien Veyssier 29b7e0fdf3
stop returning null in getAttachmentDirectoryForFile, use exceptions instead
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:38 +01:00
Julien Veyssier cde5784141
fix stuff after PR comments
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:38 +01:00
Julien Veyssier 2f23e2d18d
remove Unnecessary else
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:38 +01:00
Julien Veyssier 9b1c396d9b
factorize getAttachmentDirectoryForFile and getOrCreateAttachmentDirectoryForFile
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:38 +01:00
Julien Veyssier dc710f7e99
fix other stuff after PR comments
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:38 +01:00
Julien Veyssier 3905852172
fix other stuff after PR comments
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-03 10:27:38 +01:00