Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: trim the dirname of attachment send by telegram bot (#2651)
Athurg Goothb14334220f2f
diff --git a/server/integration/telegram.go b/server/integration/telegram.goindex 142df9643..fe423865f 100644--- a/server/integration/telegram.go+++ b/server/integration/telegram.go@@ -4,6 +4,7 @@ import ("bytes""context""fmt"+ "path""strconv""unicode/utf16"@@ -84,7 +85,7 @@ func (t *TelegramHandler) MessageHandle(ctx context.Context, bot *telegram.Bot,// Fill the common field of createcreate := store.Resource{CreatorID: creatorID,- Filename: attachment.FileName,+ Filename: path.Base(attachment.FileName),Type: attachment.GetMimeType(),Size: attachment.FileSize,MemoID: &memoMessage.ID,