From d3f51c73b52e35e13de120e42d25b645b4980719 Mon Sep 17 00:00:00 2001 From: Andriy Cherniy Date: Fri, 5 Jan 2024 01:12:13 +0200 Subject: [PATCH] add more info about posts in debug logs --- main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 3c33569..29a2522 100755 --- a/main.go +++ b/main.go @@ -95,8 +95,7 @@ func main() { log.Fatal(err) } - masto_client := mastodon.NewClient(&mastodon.Config{ - Server: os.Getenv("MASTODON_HOMESERVER"), + masto_client := mastodon.NewClient(&mastodon.Config{Server: os.Getenv("MASTODON_HOMESERVER"), ClientID: os.Getenv("MASTODON_CLIENT_ID"), ClientSecret: os.Getenv("MASTODON_CLIENT_SECRET"), AccessToken: os.Getenv("MASTODON_ACCESS_TOKEN"), @@ -238,8 +237,7 @@ notif_loop: if notif.Type == "mention" && notif.Status.InReplyToID == nil && notif.Status.InReplyToAccountID == nil { log.Debugf(`post passed reply check (%v) -text: %v -actor: %v`, notif.Status.ID, notif.Status.Content, notif.Account.Acct) + raw data: %v`, notif.Status.ID, notif.Status) subscribers, err := masto_client.GetAccountFollowers(ctx, masto_user.ID, &mastodon.Pagination{Limit: 10000}) if err != nil { log.Error(err)