clear out the friendica compat clutter
This commit is contained in:
parent
85801689a0
commit
8fd2e42878
29
activity.go
29
activity.go
|
@ -27,7 +27,6 @@ import (
|
|||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
|
@ -594,26 +593,6 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
|||
}
|
||||
|
||||
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 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
|||
}
|
||||
}
|
||||
if !isUpdate && needxonk(user, &xonk) {
|
||||
if strings.HasSuffix(convoy, "#context") {
|
||||
// friendica...
|
||||
if rid != "" {
|
||||
convoy = ""
|
||||
} else {
|
||||
convoy = url
|
||||
}
|
||||
}
|
||||
if rid != "" {
|
||||
if needxonkid(user, rid) {
|
||||
goingup++
|
||||
|
|
Loading…
Reference in New Issue