all repos — honk @ 560c50589cd44efd7e0f62bfa9e08f3c4aa0af33

my fork of honk

clear out the friendica compat clutter
Ted Unangst tedu@tedunangst.com
Tue, 04 Feb 2020 13:50:33 -0500
commit

560c50589cd44efd7e0f62bfa9e08f3c4aa0af33

parent

2e881e0ae6c88e42ee8b20873efc8878fdf3d420

1 files changed, 0 insertions(+), 29 deletions(-)

jump to
M activity.goactivity.go

@@ -27,7 +27,6 @@ notrand "math/rand"

"net/http" "net/url" "os" - "regexp" "strings" "time"

@@ -594,26 +593,6 @@ return nil

} if obj != nil { - if _, ok := obj.GetString("diaspora:guid"); ok { - // friendica does the silliest bonks - if c, ok := obj.GetString("source", "content"); ok { - re_link := regexp.MustCompile(`link='([^']*)'`) - if m := re_link.FindStringSubmatch(c); len(m) > 1 { - xid = m[1] - log.Printf("getting friendica flavored bonk: %s", xid) - if !needxonkid(user, xid) { - return nil - } - if newobj, err := GetJunkHardMode(xid); err == nil { - obj = newobj - origin = originate(xid) - what = "bonk" - } else { - log.Printf("error getting bonk: %s: %s", xid, err) - } - } - } - } xid, _ = obj.GetString("id") }

@@ -888,14 +867,6 @@ updatehonk(&xonk)

} } if !isUpdate && needxonk(user, &xonk) { - if strings.HasSuffix(convoy, "#context") { - // friendica... - if rid != "" { - convoy = "" - } else { - convoy = url - } - } if rid != "" { if needxonkid(user, rid) { goingup++