mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 08:40:01 +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("isSubscription", payload.IsSubscriptionPayment)
|
||||||
fields.Set("isFirstSubPayment", payload.IsFirstSubscriptionPayment)
|
fields.Set("isFirstSubPayment", payload.IsFirstSubscriptionPayment)
|
||||||
|
|
||||||
if payload.IsPublic {
|
if payload.IsPublic && payload.Message != nil {
|
||||||
fields.Set("message", payload.Message)
|
fields.Set("message", *payload.Message)
|
||||||
}
|
}
|
||||||
|
|
||||||
if payload.IsSubscriptionPayment && payload.TierName != nil {
|
if payload.IsSubscriptionPayment && payload.TierName != nil {
|
||||||
|
|
Loading…
Reference in a new issue