Skip to content

Commit

Permalink
Revert "Fix public link paths for file shares (cs3org#2297)"
Browse files Browse the repository at this point in the history
This reverts commit 29826a3.
  • Loading branch information
butonic committed Nov 22, 2021
1 parent dec87e1 commit eb82c25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions changelog/unreleased/fix-public-share-paths.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,7 @@ func (s *service) translatePublicRefToCS3Ref(ctx context.Context, ref *provider.
return nil, "", nil, st, nil
}

p := shareInfo.Path
if shareInfo.Type != provider.ResourceType_RESOURCE_TYPE_FILE {
p = path.Join("/", shareInfo.Path, relativePath)
}
cs3Ref := &provider.Reference{Path: p}

cs3Ref := &provider.Reference{Path: path.Join("/", shareInfo.Path, relativePath)}
log.Debug().
Interface("sourceRef", ref).
Interface("cs3Ref", cs3Ref).
Expand Down

0 comments on commit eb82c25

Please sign in to comment.