Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test
Browse files Browse the repository at this point in the history
gmgigi96 committed Dec 1, 2023
1 parent 6e68d22 commit 46d411d
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocgraph/drives.go
Original file line number Diff line number Diff line change
@@ -149,7 +149,7 @@ func getDrivesForShares(ctx context.Context, gw gateway.GatewayAPIClient) ([]*li
// TODO (gdelmont): filter out the rejected shares

// the prefix of the remote_item.id and rootid
idPrefix := base32.StdEncoding.EncodeToString([]byte(fmt.Sprintf("#s%s", stat.Info.Path)))
idPrefix := base32.StdEncoding.EncodeToString([]byte(fmt.Sprintf("%s", stat.Info.Path)))
resourceIdEnc := base32.StdEncoding.EncodeToString([]byte(resourceid.OwnCloudResourceIDWrap(stat.Info.Id)))

space := &libregraph.Drive{
Original file line number Diff line number Diff line change
@@ -1147,7 +1147,7 @@ func (h *Handler) addFileInfo(ctx context.Context, s *conversions.ShareData, inf
s.MimeType = parsedMt
// TODO STime: &types.Timestamp{Seconds: info.Mtime.Seconds, Nanos: info.Mtime.Nanos},
// TODO Storage: int
itemID := base32.StdEncoding.EncodeToString([]byte(fmt.Sprintf("#s%s", info.Path)))
itemID := base32.StdEncoding.EncodeToString([]byte(fmt.Sprintf("%s", info.Path)))
itemID += "!" + base32.StdEncoding.EncodeToString([]byte(resourceid.OwnCloudResourceIDWrap(info.Id)))

s.ItemSource = itemID

0 comments on commit 46d411d

Please sign in to comment.