re-implementing results from cloud code to use Friend and Owner instead of UserId