Skip to content

Commit

Permalink
Reply to share actions with full path
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas committed Oct 15, 2021
1 parent d1ec85d commit a1c7710
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog/unreleased/full_path_on_share_info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bugfix: Retrieve the full path of a share when setting as
accepted or on shared by me

https://github.com/cs3org/reva/pull/2177
Original file line number Diff line number Diff line change
Expand Up @@ -849,11 +849,11 @@ func (h *Handler) addFileInfo(ctx context.Context, s *conversions.ShareData, inf
s.FileSource = s.ItemSource
switch {
case s.ShareType == conversions.ShareTypePublicLink:
s.FileTarget = path.Join("/", path.Base(info.Path))
s.Path = path.Join("/", path.Base(info.Path))
s.FileTarget = info.Path
s.Path = info.Path
case h.sharePrefix == "/":
s.FileTarget = path.Join("/", path.Base(info.Path))
s.Path = path.Join("/", path.Base(info.Path))
s.FileTarget = info.Path
s.Path = info.Path
default:
s.FileTarget = path.Join(h.sharePrefix, path.Base(info.Path))
s.Path = path.Join("/", path.Base(info.Path))
Expand Down

0 comments on commit a1c7710

Please sign in to comment.