Skip to content

Commit

Permalink
fix(mastodon): config keys are case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Feb 17, 2025
1 parent 3e17d78 commit a63b9b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/mastodon/mastodon.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func NewMastodon(co *core.Core, configMap map[string]interface{}) (server.Plugin
ClientSecret: clientSecret,
AccessToken: accessToken,
}),
maximumCharacters: config.IntOr("maximumCharacters", 500),
maximumPhotos: config.IntOr("maximumPhotos", 5),
maximumCharacters: config.IntOr("maximumcharacters", 500),
maximumPhotos: config.IntOr("maximumphotos", 5),
}, nil
}

Expand Down Expand Up @@ -161,7 +161,7 @@ func (m *Mastodon) Syndicate(ctx context.Context, e *core.Entry, photos []server
textContent := e.TextContent()
addPermalink := len(photos) != len(toot.MediaIDs)

maximumCharacters := m.maximumCharacters
maximumCharacters := m.maximumCharacters
if addPermalink {
maximumCharacters -= len(e.Permalink) + 3
}
Expand Down

0 comments on commit a63b9b0

Please sign in to comment.