xonks without https are simply invalid

This commit is contained in:
Ted Unangst 2019-11-30 17:51:27 -05:00
parent b76f377ca9
commit f994120a87
1 changed files with 3 additions and 0 deletions

View File

@ -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
} }