mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: create memo with resource name
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"strconv"
|
||||
"unicode/utf16"
|
||||
|
||||
"github.com/lithammer/shortuuid/v4"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
apiv1 "github.com/usememos/memos/api/v1"
|
||||
@@ -58,8 +59,9 @@ func (t *TelegramHandler) MessageHandle(ctx context.Context, bot *telegram.Bot,
|
||||
}
|
||||
|
||||
create := &store.Memo{
|
||||
CreatorID: creatorID,
|
||||
Visibility: store.Private,
|
||||
ResourceName: shortuuid.New(),
|
||||
CreatorID: creatorID,
|
||||
Visibility: store.Private,
|
||||
}
|
||||
|
||||
if message.Text != nil {
|
||||
|
Reference in New Issue
Block a user