Skip to content

Commit

Permalink
GO-1605 Update objects in Skip
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillSto committed Jun 30, 2023
1 parent 3c75fc9 commit 4291ec3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmd/archiveprocessor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,19 @@ func processAndValidate(snapshot *pb.ChangeSnapshot, info *useCaseInfo) error {
processAccountRelatedDetails(snapshot)
processRules(snapshot)

if id == "bafyreibop22didlfnzyoplncnhd5cqrevjw5nwud3maqrzeq6h7jzedhmi" {
snapshot.Data.Blocks[15].Content.(*model.BlockContentOfBookmark).Bookmark = &model.BlockContentBookmark{
TargetObjectId: "bafyreidj2g3i6lc3udtlrr5ytcsgusywcyecepcirk5cans6aoxw2nnmhy",
Type: model.LinkPreview_Page,
State: model.BlockContentBookmark_Done,
Url: "https://community.anytype.io/",
Title: "Anytype Community",
Description: "Place to share feedback, write bug reports, and connect with Anytype users from all over the globe!",
ImageHash: "bafybeib4mags3wtdcpnlwcysqby6kdhvy2hbk3s54owcqmpvjwlv4xe7ky",
FaviconHash: "bafybeiasl27gslws4hpvzufm467zjhxb3klodj53rt6dpola67bmvep3x4",
}
}

if !strings.HasPrefix(id, addr.RelationKeyToIdPrefix) && !strings.HasPrefix(id, addr.ObjectTypeKeyToIdPrefix) {
isValid := true
for _, v := range validators {
Expand Down
Binary file modified util/builtinobjects/data/skip.zip
Binary file not shown.

0 comments on commit 4291ec3

Please sign in to comment.