diff options
author | FChannel <> | 2022-06-05 11:19:18 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 5e4f829b9c26e40bc3931226d4fa0872c150e43a (patch) | |
tree | bfe833f7d085c667574448963737b0d100cc77df /activitypub | |
parent | 8b1a7fa5e37e4c8c4b0df3d83067079a081e32d3 (diff) |
auto subscribe in place. still have to do some logic changes for bugs
Diffstat (limited to 'activitypub')
-rw-r--r-- | activitypub/actor.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |