1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-24 08:57:03 -05:00

Remove star validation as it happens in actor validation now

This commit is contained in:
erik 2023-11-24 12:50:15 +01:00 committed by Michael Jerger
parent 566b3bc459
commit 43ac3ddca9

View file

@ -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, '{')