all repos — honk @ 2c882ef2329ec7d1a66ebc2a33f4f626184b6ea9

my fork of honk

handle the case where inreplyto is an object
Ted Unangst tedu@tedunangst.com
Mon, 22 Jul 2019 00:09:16 -0400
commit

2c882ef2329ec7d1a66ebc2a33f4f626184b6ea9

parent

c008f7b2513b77d4674570190cc81dd9d9e2d20a

2 files changed, 15 insertions(+), 1 deletions(-)

jump to
M activity.goactivity.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.txtdocs/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.