handle the case where inreplyto is an object
This commit is contained in:
parent
4e03d728b8
commit
a1648667ec
|
@ -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")
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue