Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Nextcloud
server
Commits
92b8a5ef
Unverified
Commit
92b8a5ef
authored
2 years ago
by
Arthur Schiwon
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #37057 from nextcloud/backport/36904/stable26
[stable26] fix(files): Fix controller setup for guests
parents
72cf710e
442bce3e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/files/lib/Service/TagService.php
+6
-9
6 additions, 9 deletions
apps/files/lib/Service/TagService.php
with
6 additions
and
9 deletions
apps/files/lib/Service/TagService.php
+
6
−
9
View file @
92b8a5ef
...
...
@@ -42,24 +42,17 @@ class TagService {
private
$userSession
;
/** @var IManager */
private
$activityManager
;
/** @var ITags */
/** @var ITags
|null
*/
private
$tagger
;
/** @var Folder */
private
$homeFolder
;
/** @var EventDispatcherInterface */
private
$dispatcher
;
/**
* @param IUserSession $userSession
* @param IManager $activityManager
* @param ITags $tagger
* @param Folder $homeFolder
* @param EventDispatcherInterface $dispatcher
*/
public
function
__construct
(
IUserSession
$userSession
,
IManager
$activityManager
,
ITags
$tagger
,
?
ITags
$tagger
,
Folder
$homeFolder
,
EventDispatcherInterface
$dispatcher
)
{
...
...
@@ -81,6 +74,10 @@ class TagService {
* @throws \OCP\Files\NotFoundException if the file does not exist
*/
public
function
updateFileTags
(
$path
,
$tags
)
{
if
(
$this
->
tagger
===
null
)
{
throw
new
\RuntimeException
(
'No tagger set'
);
}
$fileId
=
$this
->
homeFolder
->
get
(
$path
)
->
getId
();
$currentTags
=
$this
->
tagger
->
getTagsForObjects
([
$fileId
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment