updated junk interface

master
Ted Unangst 5 years ago
parent bae6e430d6
commit 881ef2e395

@ -312,7 +312,7 @@ var boxofboxes = cache.New(cache.Options{Filler: func(ident string) (*Box, bool)
}
inbox, _ := j.GetString("inbox")
outbox, _ := j.GetString("outbox")
sbox, _ := j.FindString([]string{"endpoints", "sharedInbox"})
sbox, _ := j.GetString("endpoints", "sharedInbox")
b := &Box{In: inbox, Out: outbox, Shared: sbox}
if inbox != "" {
m := strings.Join([]string{inbox, outbox, sbox}, " ")
@ -593,7 +593,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
_, ok := obj.GetString("diaspora:guid")
if ok {
// friendica does the silliest bonks
c, ok := obj.FindString([]string{"source", "content"})
c, ok := obj.GetString("source", "content")
if ok {
re_link := regexp.MustCompile(`link='([^']*)'`)
m := re_link.FindStringSubmatch(c)

@ -7,7 +7,7 @@ require (
golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4
golang.org/x/net v0.0.0-20190620200207-3b0461eec859
humungus.tedunangst.com/r/go-sqlite3 v1.1.3
humungus.tedunangst.com/r/webs v0.6.12
humungus.tedunangst.com/r/webs v0.6.13
)
go 1.11

@ -23,3 +23,5 @@ humungus.tedunangst.com/r/go-sqlite3 v1.1.3 h1:G2N4wzDS0NbuvrZtQJhh4F+3X+s7BF8b9
humungus.tedunangst.com/r/go-sqlite3 v1.1.3/go.mod h1:FtEEmQM7U2Ey1TuEEOyY1BmphTZnmiEjPsNLEAkpf/M=
humungus.tedunangst.com/r/webs v0.6.12 h1:tRQOF/tJ6FeT3V1KO+8iz+WFNwMQvzMmPqiykD0rgnA=
humungus.tedunangst.com/r/webs v0.6.12/go.mod h1:S9sXpVSbgAIa24yYhnMN0C94LKHG+2rioS+NsiDimps=
humungus.tedunangst.com/r/webs v0.6.13 h1:NoPvn+92GVCmMekUCyfgT9rSgDQs6Jp5Fv/tyhHD1Gc=
humungus.tedunangst.com/r/webs v0.6.13/go.mod h1:S9sXpVSbgAIa24yYhnMN0C94LKHG+2rioS+NsiDimps=

Loading…
Cancel
Save