mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-21 13:09:10 -06:00
fix: static spaceid format for sse (#8625)
This commit is contained in:
@@ -3,3 +3,4 @@
|
||||
Adds the spaceID to all clientlog sse messages
|
||||
|
||||
https://github.com/owncloud/ocis/pull/8614
|
||||
https://github.com/owncloud/ocis/pull/8624
|
||||
|
||||
@@ -120,7 +120,7 @@ func (cl *ClientlogService) processEvent(event events.Event) {
|
||||
ItemID: storagespace.FormatResourceID(*e.ID),
|
||||
// TODO: check with web if parentID is needed
|
||||
// ParentItemID: storagespace.FormatResourceID(*item.GetRef().GetResourceId()),
|
||||
SpaceID: e.ID.GetSpaceId(),
|
||||
SpaceID: storagespace.FormatStorageID(e.ID.GetStorageId(), e.ID.GetSpaceId()),
|
||||
}
|
||||
|
||||
users, err = utils.GetSpaceMembers(ctx, e.ID.GetSpaceId(), gwc, utils.ViewerRole)
|
||||
@@ -182,7 +182,7 @@ func processFileEvent(ctx context.Context, ref *provider.Reference, gwc gateway.
|
||||
data := FileEvent{
|
||||
ParentItemID: storagespace.FormatResourceID(*info.GetParentId()),
|
||||
ItemID: storagespace.FormatResourceID(*info.GetId()),
|
||||
SpaceID: info.GetSpace().GetId().GetOpaqueId(),
|
||||
SpaceID: storagespace.FormatStorageID(info.GetSpace().GetRoot().GetStorageId(), info.GetSpace().GetRoot().GetSpaceId()),
|
||||
}
|
||||
|
||||
users, err := utils.GetSpaceMembers(ctx, info.GetSpace().GetId().GetOpaqueId(), gwc, utils.ViewerRole)
|
||||
|
||||
Reference in New Issue
Block a user