1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00

Add command line argument to export user feeds

This commit is contained in:
Frédéric Guillot 2023-09-27 21:15:32 -07:00
parent 39d752ca85
commit f98fc1e03a
5 changed files with 50 additions and 5 deletions

View file

@ -13,11 +13,11 @@ import (
)
func (h *handler) exportFeeds(w http.ResponseWriter, r *http.Request) {
opml, err := opml.NewHandler(h.store).Export(request.UserID(r))
opmlExport, err := opml.NewHandler(h.store).Export(request.UserID(r))
if err != nil {
html.ServerError(w, r, err)
return
}
xml.Attachment(w, r, "feeds.opml", opml)
xml.Attachment(w, r, "feeds.opml", opmlExport)
}