From f994120a87a02bafff835def1ebd4ae5fb1441d3 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 30 Nov 2019 17:51:27 -0500 Subject: [PATCH] xonks without https are simply invalid --- activity.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activity.go b/activity.go index 1becc82..31315b2 100644 --- a/activity.go +++ b/activity.go @@ -242,6 +242,9 @@ func needxonk(user *WhatAbout, x *Honk) bool { 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 }