Update activity API to send the same data over websocket as it sends over REST
In order to implement #1534 and #1316 (closed) the activity API needs to send the same data over websocket as it sends over REST.
Currently it sends two totally different objects:
-
GET /history/listenings
returns a list ofListening
models withartist
anduser
fields - corresponding
Listen
websocket message sends only artists name nor does it have anuser
field at all, so we can't correctly render a track in the recently listened
I've only played with the Listen
message but it's possible that this may be also applicable to other messages that are sent when a track is favorited / added.