handle the case where inreplyto is an object
Ted Unangst tedu@tedunangst.com
Mon, 22 Jul 2019 00:09:16 -0400
2 files changed,
15 insertions(+),
1 deletions(-)
M
activity.go
→
activity.go
@@ -588,7 +588,13 @@ sens, _ := obj["sensitive"].(bool)
if sens && precis == "" { precis = "unspecified horror" } - rid, _ = obj.GetString("inReplyTo") + rid, ok = obj.GetString("inReplyTo") + if !ok { + robj, ok := obj.GetMap("inReplyTo") + if ok { + rid, _ = robj.GetString("id") + } + } convoy, _ = obj.GetString("context") if convoy == "" { convoy, _ = obj.GetString("conversation")
M
docs/changelog.txt
→
docs/changelog.txt
@@ -1,5 +1,13 @@
changelog +-- next + ++ Improved ActivityPub parsing conformance for better compat with others. + ++ Add server name to user agent. + ++ What may be considered UI improvements. + -- 0.7.4 + Ever more bug fixes.