mirror of
https://github.com/usememos/memos.git
synced 2024-11-28 05:53:14 +03:00
fix: resource url in rss (#1672)
This commit is contained in:
parent
1a8310f027
commit
ca5859296a
@ -108,7 +108,7 @@ func (s *Server) generateRSSFromMemoList(ctx context.Context, memoList []*api.Me
|
|||||||
if resource.ExternalLink != "" {
|
if resource.ExternalLink != "" {
|
||||||
enclosure.Url = resource.ExternalLink
|
enclosure.Url = resource.ExternalLink
|
||||||
} else {
|
} 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.Length = strconv.Itoa(int(resource.Size))
|
||||||
enclosure.Type = resource.Type
|
enclosure.Type = resource.Type
|
||||||
|
Loading…
Reference in New Issue
Block a user