add more info about posts in debug logs
This commit is contained in:
parent
09f966ee11
commit
d3f51c73b5
1 changed files with 2 additions and 4 deletions
6
main.go
6
main.go
|
@ -95,8 +95,7 @@ func main() {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
masto_client := mastodon.NewClient(&mastodon.Config{
|
masto_client := mastodon.NewClient(&mastodon.Config{Server: os.Getenv("MASTODON_HOMESERVER"),
|
||||||
Server: os.Getenv("MASTODON_HOMESERVER"),
|
|
||||||
ClientID: os.Getenv("MASTODON_CLIENT_ID"),
|
ClientID: os.Getenv("MASTODON_CLIENT_ID"),
|
||||||
ClientSecret: os.Getenv("MASTODON_CLIENT_SECRET"),
|
ClientSecret: os.Getenv("MASTODON_CLIENT_SECRET"),
|
||||||
AccessToken: os.Getenv("MASTODON_ACCESS_TOKEN"),
|
AccessToken: os.Getenv("MASTODON_ACCESS_TOKEN"),
|
||||||
|
@ -238,8 +237,7 @@ notif_loop:
|
||||||
|
|
||||||
if notif.Type == "mention" && notif.Status.InReplyToID == nil && notif.Status.InReplyToAccountID == nil {
|
if notif.Type == "mention" && notif.Status.InReplyToID == nil && notif.Status.InReplyToAccountID == nil {
|
||||||
log.Debugf(`post passed reply check (%v)
|
log.Debugf(`post passed reply check (%v)
|
||||||
text: %v
|
raw data: %v`, notif.Status.ID, notif.Status)
|
||||||
actor: %v`, notif.Status.ID, notif.Status.Content, notif.Account.Acct)
|
|
||||||
subscribers, err := masto_client.GetAccountFollowers(ctx, masto_user.ID, &mastodon.Pagination{Limit: 10000})
|
subscribers, err := masto_client.GetAccountFollowers(ctx, masto_user.ID, &mastodon.Pagination{Limit: 10000})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
|
|
Loading…
Reference in a new issue