chore: remove resource public id (#1912)

* chore: remove resource public id

* chore: update
This commit is contained in:
boojack
2023-07-08 11:29:50 +08:00
committed by GitHub
parent 2157651d17
commit 7e391bd53d
17 changed files with 82 additions and 93 deletions

View File

@@ -114,7 +114,7 @@ func (s *APIV1Service) generateRSSFromMemoList(ctx context.Context, memoList []*
if resource.ExternalLink != "" {
enclosure.Url = resource.ExternalLink
} else {
enclosure.Url = baseURL + "/o/r/" + strconv.Itoa(resource.ID) + "/" + resource.PublicID + "/" + resource.Filename
enclosure.Url = baseURL + "/o/r/" + strconv.Itoa(resource.ID)
}
enclosure.Length = strconv.Itoa(int(resource.Size))
enclosure.Type = resource.Type