Skip to content

Commit

Permalink
Fix check for expired public links
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen authored and micbar committed Jun 21, 2021
1 parent 949f03b commit 5f3bf8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Add shareExpire-param to indicate if a share was removed due to its expiry - [#944](https://github.com/owncloud/activity/issues/944)
- Automations in activity stream - [#942](https://github.com/owncloud/activity/issues/942)

### Fixed

- Expired public share has wrong activity message - [#965](https://github.com/owncloud/activity/issues/965)

## [2.6.0] - 2020-10-16

Expand Down
2 changes: 1 addition & 1 deletion lib/FilesHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ protected function shareFileOrFolderByLink($fileSource, $itemType, $linkOwner, $
if ($isSharing) {
$actionSharer = 'shared_link_self';
$actionOwner = 'reshared_link_by';
} elseif ($this->currentUser !== $linkOwner) {
} elseif ($shareExpired === true) {
// Link expired
$actionSharer = 'link_expired';
$actionOwner = 'link_by_expired';
Expand Down

0 comments on commit 5f3bf8b

Please sign in to comment.