don't address to followers while the posts go on the wrong timelines
This commit is contained in:
parent
90a6e0f7c3
commit
5ef64966f3
9
fun.go
9
fun.go
|
@ -231,6 +231,15 @@ func prepend(s string, x []string) []string {
|
||||||
return append([]string{s}, x...)
|
return append([]string{s}, x...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// pleroma leaks followers addressed posts to followers
|
||||||
|
func butnottooloud(aud []string) {
|
||||||
|
for i, a := range aud {
|
||||||
|
if strings.HasSuffix(a, "/followers") {
|
||||||
|
aud[i] = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func oneofakind(a []string) []string {
|
func oneofakind(a []string) []string {
|
||||||
var x []string
|
var x []string
|
||||||
for n, s := range a {
|
for n, s := range a {
|
||||||
|
|
1
honk.go
1
honk.go
|
@ -877,6 +877,7 @@ func savehonk(w http.ResponseWriter, r *http.Request) {
|
||||||
if convoy == "" {
|
if convoy == "" {
|
||||||
convoy = "data:,electrichonkytonk-" + xfiltrate()
|
convoy = "data:,electrichonkytonk-" + xfiltrate()
|
||||||
}
|
}
|
||||||
|
butnottooloud(honk.Audience)
|
||||||
honk.Audience = oneofakind(honk.Audience)
|
honk.Audience = oneofakind(honk.Audience)
|
||||||
noise = obfusbreak(noise)
|
noise = obfusbreak(noise)
|
||||||
honk.Noise = noise
|
honk.Noise = noise
|
||||||
|
|
Loading…
Reference in New Issue