Skip to content

Commit 446e38f

Browse files
committed
fix: memo content snippet
1 parent 7c9f967 commit 446e38f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

server/router/api/v1/memo_service.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,8 +1301,5 @@ func getMemoContentSnippet(content string) (string, error) {
13011301
}
13021302

13031303
plainText := renderer.NewStringRenderer().Render(nodes)
1304-
if len(plainText) > 100 {
1305-
return plainText[:100] + "...", nil
1306-
}
13071304
return plainText, nil
13081305
}

store/db/mysql/common.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import "google.golang.org/protobuf/encoding/protojson"
44

55
var (
66
protojsonUnmarshaler = protojson.UnmarshalOptions{
7+
AllowPartial: true,
78
DiscardUnknown: true,
89
}
910
)

0 commit comments

Comments
 (0)