From 43ac3ddca9f4b7ef672837ba253c4d6b73fe34cf Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 24 Nov 2023 12:50:15 +0100 Subject: [PATCH] Remove star validation as it happens in actor validation now --- modules/forgefed/star.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/forgefed/star.go b/modules/forgefed/star.go index 488a86bc29..3e6843e0f9 100644 --- a/modules/forgefed/star.go +++ b/modules/forgefed/star.go @@ -4,8 +4,6 @@ package forgefed import ( - "fmt" - ap "github.com/go-ap/activitypub" "github.com/valyala/fastjson" ) @@ -44,16 +42,6 @@ func StarNew(id ap.ID, ob ap.ID) *Star { // ToDo: May be used later in creating return &o } -func (a Star) ValidateStar() error { - - if a.Source != "forgejo" { - return fmt.Errorf("currently, only a forgejo source is supported") - } - - return nil - -} - func (a Star) MarshalJSON() ([]byte, error) { b := make([]byte, 0) ap.JSONWrite(&b, '{')