Add support for edited statuses
ActivityPub supports "status.update" for editing statuses. These should be made available for streams.
This commit is contained in:
parent
29bb16009b
commit
620be3654f
6 changed files with 66 additions and 9 deletions
|
@ -127,6 +127,12 @@ func (c *WSClient) handleWS(ctx context.Context, rawurl string, q chan Event) er
|
|||
if err == nil {
|
||||
q <- &UpdateEvent{Status: &status}
|
||||
}
|
||||
case "status.update":
|
||||
var status Status
|
||||
err = json.Unmarshal([]byte(s.Payload.(string)), &status)
|
||||
if err == nil {
|
||||
q <- &UpdateEditEvent{Status: &status}
|
||||
}
|
||||
case "notification":
|
||||
var notification Notification
|
||||
err = json.Unmarshal([]byte(s.Payload.(string)), ¬ification)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue