From af547b6da6665046aa2a9357be5ec04aac13c8db Mon Sep 17 00:00:00 2001 From: kirillston Date: Tue, 10 Sep 2024 09:27:26 +0200 Subject: [PATCH] GO-3965 Add mentions in relation links --- core/block/editor/smartblock/links.go | 2 +- docs/ComplexFilters.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/block/editor/smartblock/links.go b/core/block/editor/smartblock/links.go index e615ad199..315ed3493 100644 --- a/core/block/editor/smartblock/links.go +++ b/core/block/editor/smartblock/links.go @@ -50,7 +50,7 @@ func (sb *smartBlock) injectMentions(s *state.State) { NoImages: true, }) mentions = slice.RemoveMut(mentions, sb.Id()) - s.SetLocalDetail(bundle.RelationKeyMentions.String(), pbtypes.StringList(mentions)) + s.SetDetailAndBundledRelation(bundle.RelationKeyMentions, pbtypes.StringList(mentions)) } func isBacklinksChanged(msgs []simple.EventMessage) bool { diff --git a/docs/ComplexFilters.md b/docs/ComplexFilters.md index 64b0cc93f..ea94310ce 100644 --- a/docs/ComplexFilters.md +++ b/docs/ComplexFilters.md @@ -4,7 +4,7 @@ The majority of search filters for ObjectSearch-requests have simple format `key ```json { "RelationKey": "type", - "condition": 2, // equals + "condition": 2, // is not equal "value": { "stringValue": "ot-page" } @@ -45,7 +45,7 @@ All objects that has similar name and description: ```json { "RelationKey": "name", - "condition": 1, + "condition": 1, // equals "value": { "structValue": { "fields": {