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
feat: trim space on webhook url (#4411)
ProjectOrangeJuice9f25bb203466
diff --git a/server/router/api/v1/webhook_service.go b/server/router/api/v1/webhook_service.goindex 9ea04458d..e367715ba 100644--- a/server/router/api/v1/webhook_service.go+++ b/server/router/api/v1/webhook_service.go@@ -3,6 +3,7 @@ package v1import ("context""fmt"+ "strings""time""google.golang.org/grpc/codes"@@ -23,7 +24,7 @@ func (s *APIV1Service) CreateWebhook(ctx context.Context, request *v1pb.CreateWewebhook, err := s.Store.CreateWebhook(ctx, &store.Webhook{CreatorID: currentUser.ID,Name: request.Name,- URL: request.Url,+ URL: strings.TrimSpace(request.Url),})if err != nil {return nil, status.Errorf(codes.Internal, "failed to create webhook, error: %+v", err)