aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index c632e53..a8faeca 100644
--- a/main.go
+++ b/main.go
@@ -1491,6 +1491,11 @@ func ParseCommentForReplies(comment string) []ObjectBase {
func CheckValidActivity(id string) (Collection, bool) {
+ re := regexp.MustCompile(`.+\.onion(.+)?`)
+ if re.MatchString(id) {
+ id = strings.Replace(id, "https", "http", 1)
+ }
+
req, err := http.NewRequest("GET", id, nil)
if err != nil {