mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 08:10:08 +00:00
[kofi] Fix: Use message as string
with pointer of string comparisons do not work properly and make templating hard Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
621d266391
commit
b38ecc9d0b
1 changed files with 2 additions and 2 deletions
|
@ -100,8 +100,8 @@ func handleKoFiPost(w http.ResponseWriter, r *http.Request) {
|
|||
fields.Set("isSubscription", payload.IsSubscriptionPayment)
|
||||
fields.Set("isFirstSubPayment", payload.IsFirstSubscriptionPayment)
|
||||
|
||||
if payload.IsPublic {
|
||||
fields.Set("message", payload.Message)
|
||||
if payload.IsPublic && payload.Message != nil {
|
||||
fields.Set("message", *payload.Message)
|
||||
}
|
||||
|
||||
if payload.IsSubscriptionPayment && payload.TierName != nil {
|
||||
|
|
Loading…
Reference in a new issue