Skip to content

Commit

Permalink
Merge pull request #1951 from anyproto/go-4263-add-tag-to-details-exp…
Browse files Browse the repository at this point in the history
…licitly

GO-4263 Add tag to details of file object
  • Loading branch information
KirillSto authored Dec 13, 2024
2 parents 8ccc30b + cdfad11 commit ddade17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/block/editor/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ var WithDefaultFeaturedRelations = func(s *state.State) {
fr = []string{bundle.RelationKeyType.String(), bundle.RelationKeyBacklinks.String()}
case model.ObjectType_file, model.ObjectType_image, model.ObjectType_audio, model.ObjectType_video:
fr = []string{bundle.RelationKeyType.String(), bundle.RelationKeyTag.String(), bundle.RelationKeyBacklinks.String()}
// Tag is not added to details of object explicitly as it is not system relation
s.SetDetail(bundle.RelationKeyTag.String(), pbtypes.StringList([]string{}))
}
s.SetDetail(bundle.RelationKeyFeaturedRelations.String(), pbtypes.StringList(fr))
}
Expand Down

0 comments on commit ddade17

Please sign in to comment.