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: resource url in rss (#1672)

Stephen Zhouca5859296a99
diff --git a/server/rss.go b/server/rss.go
index e0e356f8c..18b8b66ce 100644
--- a/server/rss.go
+++ b/server/rss.go
@@ -108,7 +108,7 @@ func (s *Server) generateRSSFromMemoList(ctx context.Context, memoList []*api.Me
if resource.ExternalLink != "" {
enclosure.Url = resource.ExternalLink
} else {
- enclosure.Url = baseURL + "/o/r/" + strconv.Itoa(memo.ID) + "/" + resource.PublicID + "/" + resource.Filename
+ enclosure.Url = baseURL + "/o/r/" + strconv.Itoa(resource.ID) + "/" + resource.PublicID + "/" + resource.Filename
}
enclosure.Length = strconv.Itoa(int(resource.Size))
enclosure.Type = resource.Type