diff --git a/internal/model/actor.go b/internal/model/actor.go index 0b5157f..318e627 100644 --- a/internal/model/actor.go +++ b/internal/model/actor.go @@ -1,8 +1,11 @@ package model type Actor struct { - ActorType string `json:"actor_type"` - Id string `json:"id"` - PublicKey string `json:"public_key"` - PrivateKey string `json:"private_key"` + ActorType string `json:"actor_type"` + Id string `json:"id"` + DisplayName string `json:"display_name"` + Bio string `json:"bio"` + MatrixUserId string `json:"matrix_user_id"` + PublicKey string `json:"public_key"` + PrivateKey string `json:"private_key"` } diff --git a/test-send.go b/test-send.go index 5d62974..889179e 100644 --- a/test-send.go +++ b/test-send.go @@ -27,13 +27,15 @@ func main() { defer cancel() body := ` - { - "actor_type": "user", - "id": "lazyguru@discuss.online", - "private_key": "some super secure string", - "public_key": "the public key" - } - ` +{ + "actor_type": "user", + "id": "lazyguru@discuss.online", + "display_name": "Lazyguru", + "bio": "I am a lazy guru", + "matrix_user_id": "@lazyguru:discuss.online", + "private_key": "some super secure string", + "public_key": "the public key" +}` err = ch.ExchangeDeclare( "federation", // name "direct", // type