Fix parsing @context property
Previously this would fail if the @context property also contained something other than a string, like Mastodon does.
This commit is contained in:
@@ -18,7 +18,7 @@ func NewPerson(accountRoot string) *Person {
|
||||
p := Person{
|
||||
BaseObject: BaseObject{
|
||||
Type: "Person",
|
||||
Context: []string{
|
||||
Context: []interface{}{
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
},
|
||||
ID: accountRoot,
|
||||
|
||||
Reference in New Issue
Block a user