xonks without https are simply invalid
This commit is contained in:
parent
b76f377ca9
commit
f994120a87
|
@ -242,6 +242,9 @@ func needxonk(user *WhatAbout, x *Honk) bool {
|
||||||
return needxonkid(user, x.XID)
|
return needxonkid(user, x.XID)
|
||||||
}
|
}
|
||||||
func needxonkid(user *WhatAbout, xid string) bool {
|
func needxonkid(user *WhatAbout, xid string) bool {
|
||||||
|
if !strings.HasPrefix(xid, "https://") {
|
||||||
|
return false
|
||||||
|
}
|
||||||
if strings.HasPrefix(xid, user.URL+"/") {
|
if strings.HasPrefix(xid, user.URL+"/") {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue