remove stale debugging
This commit is contained in:
parent
f5e83b4905
commit
a77cab2538
|
@ -545,11 +545,9 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
||||||
if obj != nil {
|
if obj != nil {
|
||||||
_, ok := obj.GetString("diaspora:guid")
|
_, ok := obj.GetString("diaspora:guid")
|
||||||
if ok {
|
if ok {
|
||||||
log.Printf("looks like friendica")
|
|
||||||
// friendica does the silliest bonks
|
// friendica does the silliest bonks
|
||||||
c, ok := obj.FindString([]string{"source", "content"})
|
c, ok := obj.FindString([]string{"source", "content"})
|
||||||
if ok {
|
if ok {
|
||||||
log.Printf("got content")
|
|
||||||
re_link := regexp.MustCompile(`link='([^']*)'`)
|
re_link := regexp.MustCompile(`link='([^']*)'`)
|
||||||
m := re_link.FindStringSubmatch(c)
|
m := re_link.FindStringSubmatch(c)
|
||||||
if len(m) > 1 {
|
if len(m) > 1 {
|
||||||
|
@ -566,11 +564,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
||||||
origin = originate(xid)
|
origin = originate(xid)
|
||||||
what = "bonk"
|
what = "bonk"
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
log.Printf("can't find link")
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
log.Printf("no source content")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue