~netlandish/links

28e1eeeb15470a66adf8efa9212209a0ac2ed1c1 — Yader Velasquez a month ago 0b5d725
Add missing return to visibility validation
1 files changed, 2 insertions(+), 1 deletions(-)

M api/graph/schema.resolvers.go
M api/graph/schema.resolvers.go => api/graph/schema.resolvers.go +2 -1
@@ 39,7 39,7 @@ import (
	"golang.org/x/image/draw"
	"golang.org/x/net/idna"
	"netlandish.com/x/gobwebs"
	"netlandish.com/x/gobwebs-oauth2"
	oauth2 "netlandish.com/x/gobwebs-oauth2"
	gaccounts "netlandish.com/x/gobwebs/accounts"
	"netlandish.com/x/gobwebs/database"
	"netlandish.com/x/gobwebs/email"


@@ 292,6 292,7 @@ func (r *mutationResolver) AddNote(ctx context.Context, input *model.NoteInput) 
		validator.Error(lt.Translate("Free organizations are not allowed to create private notes. Please upgrade")).
			WithField("visibility").
			WithCode(valid.ErrValidationCode)
		return nil, nil
	}

	// Create the note url