[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:
Knut Ahlers 2024-07-03 12:27:54 +02:00
parent 621d266391
commit b38ecc9d0b
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -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 {