Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
[cbox-commit-4] Reply to share actions with full path
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas authored and ishank011 committed Oct 18, 2021
1 parent fbf82f6 commit b45a98e
Showing 1 changed file with 4 additions and 4 deletions.
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 b45a98e

Please sign in to comment.