Skip to content

Commit

Permalink
Reply to share actions with full path (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas authored Oct 26, 2021
1 parent 0a1b972 commit 5b66c1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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 @@ -848,10 +848,10 @@ func (h *Handler) addFileInfo(ctx context.Context, s *conversions.ShareData, inf
s.ItemSource = wrapResourceID(info.Id)
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))
case h.sharePrefix == "/":
s.FileTarget = info.Path
s.Path = info.Path
case s.ShareType == conversions.ShareTypePublicLink:
s.FileTarget = path.Join("/", path.Base(info.Path))
s.Path = path.Join("/", path.Base(info.Path))
default:
Expand Down

0 comments on commit 5b66c1b

Please sign in to comment.