From 69ba9a79a13b21af98d67bbd0802aecb49147f3f Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:58:13 +0100 Subject: [chore] de-interface{} the federator and dereferencer structs (#2285) * de-interface{} the federator and dereferencer structs * fix broken type signatures --- internal/processing/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/processing/util.go') diff --git a/internal/processing/util.go b/internal/processing/util.go index 7aefe64fc..1ce67c616 100644 --- a/internal/processing/util.go +++ b/internal/processing/util.go @@ -30,7 +30,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/util" ) -func GetParseMentionFunc(dbConn db.DB, federator federation.Federator) gtsmodel.ParseMentionFunc { +func GetParseMentionFunc(dbConn db.DB, federator *federation.Federator) gtsmodel.ParseMentionFunc { return func(ctx context.Context, targetAccount string, originAccountID string, statusID string) (*gtsmodel.Mention, error) { // get the origin account first since we'll need it to create the mention originAccount, err := dbConn.GetAccountByID(ctx, originAccountID) -- cgit v1.2.3