Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: add webhook metric
Steven5069476dcc41
diff --git a/api/v1/memo.go b/api/v1/memo.goindex 9d60202dd..3291607a2 100644--- a/api/v1/memo.go+++ b/api/v1/memo.go@@ -975,10 +975,11 @@ func (s *APIV1Service) dispatchMemoRelatedWebhook(ctx context.Context, memo *Memif err != nil {return err}- for _, wb := range webhooks {+ metric.Enqueue("webhook dispatch")+ for _, hook := range webhooks {payload := convertMemoToWebhookPayload(memo)payload.ActivityType = activityType- payload.URL = wb.Url+ payload.URL = hook.Urlerr := webhook.Post(*payload)if err != nil {return errors.Wrap(err, "failed to post webhook")