all repos — honk @ 4c4664c32a17bf5240a7440321e2b5bb0445dd93

my fork of honk

downstream filtering doesn't work without the full thread, which
we probably won't be loading for sometime, so remove dead code.
Ted Unangst tedu@tedunangst.com
Thu, 11 Jul 2019 01:59:55 -0400
commit

4c4664c32a17bf5240a7440321e2b5bb0445dd93

parent

2c026cd1a0b558cea353d1766c5a948c31a2fa80

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

jump to
M fun.gofun.go

@@ -110,22 +110,11 @@ }

func osmosis(honks []*Honk, userid int64) []*Honk { zords := getzords(userid) - for i, j := 0, len(honks)-1; i < j; i, j = i+1, j-1 { - honks[i], honks[j] = honks[j], honks[i] - } - j := 0 - filtered := make(map[string]bool) outer: for _, h := range honks { - if h.RID != "" && filtered[h.RID] { - filtered[h.XID] = true - continue outer - } - for _, z := range zords { if z.MatchString(h.Precis) || z.MatchString(h.Noise) { - filtered[h.XID] = true continue outer } }

@@ -133,9 +122,6 @@ honks[j] = h

j++ } honks = honks[0:j] - for i, j := 0, len(honks)-1; i < j; i, j = i+1, j-1 { - honks[i], honks[j] = honks[j], honks[i] - } return honks }