Unverified Commit ca585929 authored by Stephen Zhou's avatar Stephen Zhou Committed by GitHub

fix: resource url in rss (#1672)

parent 1a8310f0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment