commit 1ec82652c7bf326f8c8438437ef7a55179b14a11
parent c29010f359e2ce1caf7c33cf80b068d140cbf963
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Fri, 30 Oct 2026 23:59:06 +0100
fix missing version response fields
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pkg/rest/mailbox.go b/pkg/rest/mailbox.go
@@ -190,7 +190,7 @@ type VersionResponse struct {
// After the quota is reached, the
// regular message_fee applies.
// May be 0 for no free quota.
- FreeMessageQuota string `json:"free_message_quota"`
+ FreeMessageQuota uint64 `json:"free_message_quota"`
}
type MailboxRegistrationRequest struct {
@@ -240,6 +240,8 @@ func (m *Mailbox) configResponse(w http.ResponseWriter, r *http.Request) {
MonthlyFee: m.MonthlyFee.String(),
RegistrationUpdateFee: m.RegistrationUpdateFee.String(),
DeliveryPeriod: RelativeTime{Microseconds: uint64(dp.Microseconds())},
+ MessageFee: m.MessageFee.String(),
+ FreeMessageQuota: m.FreeMessageQuota,
}
w.Header().Set("Content-Type", "application/json")
response, _ := json.Marshal(cfg)