Skip to content

armgit / memos

Public Imported from GitHub
0

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.

fix: ignore internalpath field when creating resource (#1868)

CorrectRoadHa108f5e2127c
diff --git a/api/resource.go b/api/resource.go
index 749c9953e..bf9688dcd 100644
--- a/api/resource.go
+++ b/api/resource.go
@@ -11,7 +11,7 @@ type Resource struct {
// Domain specific fields
Filename string `json:"filename"`
Blob []byte `json:"-"`
- InternalPath string `json:"internalPath"`
+ InternalPath string `json:"-"`
ExternalLink string `json:"externalLink"`
Type string `json:"type"`
Size int64 `json:"size"`