handle the case where inreplyto is an object

This commit is contained in:
Ted Unangst 2019-07-22 00:09:16 -04:00
parent 4e03d728b8
commit a1648667ec
2 changed files with 15 additions and 1 deletions

View File

@ -588,7 +588,13 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk {
if sens && precis == "" { if sens && precis == "" {
precis = "unspecified horror" 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") convoy, _ = obj.GetString("context")
if convoy == "" { if convoy == "" {
convoy, _ = obj.GetString("conversation") convoy, _ = obj.GetString("conversation")

View File

@ -1,5 +1,13 @@
changelog 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 -- 0.7.4
+ Ever more bug fixes. + Ever more bug fixes.