Add demo for donations

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-05-04 19:13:08 +02:00
parent fb116bb29a
commit 0d0e1ca3e5
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -25,6 +25,13 @@ func handleDemoAlert(w http.ResponseWriter, r *http.Request) {
"total_amount": 1337, "total_amount": 1337,
} }
case msgTypeDonation:
data = map[string]interface{}{
"name": demoIssuer,
"amount": 6.66,
"message": "You rock!",
}
case msgTypeFollow: case msgTypeFollow:
data = map[string]interface{}{ data = map[string]interface{}{
"from": demoIssuer, "from": demoIssuer,