GetStream / stream-ruby

Ruby Client - Build Activity Feeds & Streams with GetStream.io
https://getstream.io
BSD 3-Clause "New" or "Revised" License
85 stars 32 forks source link

Shallow-copy the activity data during addition #96

Closed ruggi closed 6 years ago

ruggi commented 6 years ago

When signing to targets during activity addition the original activity data is actually changed, leading to validation failed if trying to add the same activity again, plus more potential side effects. This PR shallow-copies the data during signing/addition, without altering the original activity object.