Age | Commit message (Collapse) | Author |
|
|
|
Improvements for #1005
Just storing this less often should be a bit easier on the database.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
With the extra memcache check now this could cause issues otherwise.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
Harden check when using token from memcache
|
|
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
Explicitly comparing never hurt anybody.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: dassio <dassio@icloud.com>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
|
There is no need to log them as ERROR
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
We need the relative path inside a users home directory
to fetch the folder content for the filepicker.
$file->getPath() gets the absolute path
including username and files.
Signed-off-by: Azul <azul@riseup.net>
|
|
Perform file conflict check earlier so that it also triggers when not saving
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
This fixes multiple files showing up on case-insensitive filenames as otherwise
the IFolder::get call creates multiple entries in the filecache for the same file
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Since Nextcloud 18.0.4 the Files app triggers the "LoadViewer" event, so
that event can be used to register Text with Viewer instead of doing it
through the "OCA\Files::loadAdditionalScripts" event.
Besides being more correct for the Files app it also makes possible to
use Text when opening files through Viewer in other apps, like Talk.
Note, however, that in public share pages Text is still opened using the
fallback actions instead of through Viewer, as Viewer currently does not
provide the share token of the public shared folder that contains the
file to be opened.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
|
|
Cache the session info in memcache
|
|
This should reduce the number of queries to the DB. Esp when editing a
file with a lot of people this can really add up.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
Only return 404 for workspace property if it is not avilable
|
|
Use full list of supported filenames when obtaining the name to create
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Offer txt editing by default
|
|
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
The folder permissions are sent even if there is no workspace file for
the folder. This will make possible to disable the rich workspaces UI if
creating files is not enabled in a folder.
Rich workspaces are disabled for public share pages, so the folder
permissions are not sent in that case.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
UI fixes for public share links
|
|
Else this could result in a lot of log spam.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Fixes https://sentry.io/share/issue/e2f18ccec8ea44cf8cfe1dbfa703c802/
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Use file path to obtain workspace direct editing links
|
|
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
|