From 5e4f829b9c26e40bc3931226d4fa0872c150e43a Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 5 Jun 2022 11:19:18 -0700 Subject: auto subscribe in place. still have to do some logic changes for bugs --- activitypub/actor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activitypub') diff --git a/activitypub/actor.go b/activitypub/actor.go index aa1081f..ea4ff3b 100644 --- a/activitypub/actor.go +++ b/activitypub/actor.go @@ -881,17 +881,17 @@ func (actor Actor) ReportedResp(ctx *fiber.Ctx) error { return util.MakeError(err, "GetReported") } -func (actor Actor) SetActorAutoSubscribeDB() error { +func (actor Actor) SetAutoSubscribe() error { current, err := actor.GetAutoSubscribe() if err != nil { - return util.MakeError(err, "SetActorAutoSubscribeDB") + return util.MakeError(err, "SetAutoSubscribe") } query := `update actor set autosubscribe=$1 where id=$2` _, err = config.DB.Exec(query, !current, actor.Id) - return util.MakeError(err, "SetActorAutoSubscribeDB") + return util.MakeError(err, "SetAutoSubscribe") } func (actor Actor) SendToFollowers(activity Activity) error { -- cgit v1.2.3