all repos — honk @ 47bceb94c022d8f6e8abd7123a6e3096a21b1524

my fork of honk

we need some more debugging for the friendibonks
Ted Unangst tedu@tedunangst.com
Sun, 06 Oct 2019 22:07:39 -0400
commit

47bceb94c022d8f6e8abd7123a6e3096a21b1524

parent

29e3db72ba1159e40932bb8af9b87ebd579d19a5

1 files changed, 8 insertions(+), 1 deletions(-)

jump to
M activity.goactivity.go

@@ -560,9 +560,11 @@

if obj != nil { _, ok := obj.GetString("diaspora:guid") if ok { - // frienda does the silliest bonks + log.Printf("looks like friendica") + // friendica does the silliest bonks c, ok := item.FindString([]string{"source", "content"}) if ok { + log.Printf("got content") re_link := regexp.MustCompile(`link='([^']*)'`) m := re_link.FindStringSubmatch(c) if len(m) > 1 {

@@ -579,10 +581,15 @@ obj = newobj

origin = originate(xid) what = "bonk" } + } else { + log.Printf("can't find link") } + } else { + log.Printf("no source content") } } } + var xonk Honk // early init xonk.UserID = user.ID