Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 13, 2023
2 parents c34d84c + daa9ddf commit 0c4aee7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion kernel/av/av.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,11 @@ func SaveAttributeView(av *AttributeView) (err error) {
for _, v := range kv.Values {
if 0 == v.Block.Created {
if "" == v.Block.ID {
v.Block.ID = ast.NewNodeID()
v.Block.ID = v.BlockID
if "" == v.Block.ID {
v.Block.ID = ast.NewNodeID()
v.BlockID = v.Block.ID
}
}

createdStr := v.Block.ID[:len("20060102150405")]
Expand Down
6 changes: 5 additions & 1 deletion kernel/model/attribute_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ func RenderAttributeView(avID string) (viewable av.Viewable, attrView *av.Attrib
for _, v := range kv.Values {
if 0 == v.Block.Created {
if "" == v.Block.ID {
v.Block.ID = ast.NewNodeID()
v.Block.ID = v.BlockID
if "" == v.Block.ID {
v.Block.ID = ast.NewNodeID()
v.BlockID = v.Block.ID
}
}

createdStr := v.Block.ID[:len("20060102150405")]
Expand Down
2 changes: 1 addition & 1 deletion kernel/model/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func SetPetalEnabled(name string, enabled bool, frontend string) (ret *Petal, er
func LoadPetals(frontend string) (ret []*Petal) {
ret = []*Petal{}

if Conf.Bazaar.PetalDisabled {
if Conf.Bazaar.PetalDisabled || !Conf.Bazaar.Trust {
return
}

Expand Down

0 comments on commit 0c4aee7

Please sign in to comment.