mirror of
https://gitea.phreedom.club/localhost_frssoft/mastodon-group-bot
synced 2024-11-25 13:51:30 +00:00
not boost replies
This commit is contained in:
parent
4c046e3870
commit
b2107583ba
2
bot.go
2
bot.go
|
@ -57,7 +57,9 @@ func run_bot(Conf Config) {
|
||||||
for i := 0; i < len(followers); i++ { // Follow check
|
for i := 0; i < len(followers); i++ { // Follow check
|
||||||
if notif.Status.Account.Acct == string(followers[i].Acct) {
|
if notif.Status.Account.Acct == string(followers[i].Acct) {
|
||||||
if notif.Status.Visibility == "public" { // Reblog toot
|
if notif.Status.Visibility == "public" { // Reblog toot
|
||||||
|
if notif.Status.InReplyToID == nil {
|
||||||
c.Reblog(ctx, notif.Status.ID)
|
c.Reblog(ctx, notif.Status.ID)
|
||||||
|
}
|
||||||
} else if notif.Status.Visibility == "direct" { // Admin commands
|
} else if notif.Status.Visibility == "direct" { // Admin commands
|
||||||
for y := 0; y < len(Conf.Admins); y++ {
|
for y := 0; y < len(Conf.Admins); y++ {
|
||||||
if notif.Status.Account.Acct == Conf.Admins[y] {
|
if notif.Status.Account.Acct == Conf.Admins[y] {
|
||||||
|
|
Loading…
Reference in a new issue