~netlandish/links-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH links] Fix ISE when toggling a note as read/unread.

Details
Message ID
<20251117191824.25794-1-peter@netlandish.com>
Sender timestamp
1763385501
DKIM signature
missing
Download raw message
Patch: +1 -7
Changelog-fixed: Bug in GraphQL resolver not allowing the toggling of
  the unread flag for notes
---
 api/graph/schema.resolvers.go | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/api/graph/schema.resolvers.go b/api/graph/schema.resolvers.go
index a1584ca..3c28046 100644
--- a/api/graph/schema.resolvers.go
+++ b/api/graph/schema.resolvers.go
@@ -749,12 +749,6 @@ func (r *mutationResolver) UpdateLink(ctx context.Context, input *model.UpdateLi
	}

	if input.Unread != nil {
		if orgLink.Type == models.NoteType {
			validator.Error("%s", lt.Translate("You are not allowed to edit this field for notes")).
				WithField("unread").
				WithCode(valid.ErrValidationCode)
			return nil, nil
		}
		orgLink.Unread = *input.Unread
	}

@@ -5036,7 +5030,7 @@ func (r *queryResolver) Version(ctx context.Context) (*model.Version, error) {
	return &model.Version{
		Major:           0,
		Minor:           9,
		Patch:           0,
		Patch:           1,
		DeprecationDate: nil,
	}, nil
}
-- 
2.49.1
Details
Message ID
<DEBB7YH07JVI.1TA6OVEVYZYHV@netlandish.com>
In-Reply-To
<20251117191824.25794-1-peter@netlandish.com> (view parent)
Sender timestamp
1763395583
DKIM signature
missing
Download raw message
Applied.

To git@git.code.netlandish.com:~netlandish/links
   1fdf348..c334752  master -> master
Reply to thread Export thread (mbox)