Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
1db177b8
Commit
1db177b8
authored
Mar 24, 2015
by
Morris Jobke
Browse files
Merge pull request #15055 from owncloud/share-activity-grouping
Group sharing activities by user/group and file respectively
parents
09ea2609
7776e088
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/files_sharing/lib/activity.php
View file @
1db177b8
...
...
@@ -202,6 +202,7 @@ class Activity implements IExtension {
}
else
if
(
$app
===
'files'
)
{
switch
(
$text
)
{
case
self
::
SUBJECT_SHARED_LINK_SELF
:
return
[
0
=>
'file'
];
case
self
::
SUBJECT_SHARED_USER_SELF
:
case
self
::
SUBJECT_SHARED_WITH_BY
:
return
[
0
=>
'file'
,
1
=>
'username'
];
...
...
@@ -225,6 +226,19 @@ class Activity implements IExtension {
* @return integer|false
*/
public
function
getGroupParameter
(
$activity
)
{
if
(
$activity
[
'app'
]
===
'files'
)
{
switch
(
$activity
[
'subject'
])
{
case
self
::
SUBJECT_SHARED_LINK_SELF
:
case
self
::
SUBJECT_SHARED_WITH_BY
:
// Group by file name
return
0
;
case
self
::
SUBJECT_SHARED_USER_SELF
:
case
self
::
SUBJECT_SHARED_GROUP_SELF
:
// Group by user/group
return
1
;
}
}
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment