xonks without https are simply invalid
Ted Unangst tedu@tedunangst.com
Sat, 30 Nov 2019 17:51:27 -0500
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -242,6 +242,9 @@ }
return needxonkid(user, x.XID) } func needxonkid(user *WhatAbout, xid string) bool { + if !strings.HasPrefix(xid, "https://") { + return false + } if strings.HasPrefix(xid, user.URL+"/") { return false }