Fix feeds not updating if they dont contain a feedurl

This commit is contained in:
Alex McGrath
2021-02-06 00:17:32 +00:00
committed by Senan Kelly
parent b57860a967
commit 76875de87b
3 changed files with 5 additions and 4 deletions

View File

@@ -431,7 +431,7 @@ func (c *Controller) ServePodcastAddDo(r *http.Request) *Response {
flashW: []string{fmt.Sprintf("could not create feed: %v", err)},
}
}
if _, err = c.Podcasts.AddNewPodcast(feed, user.ID); err != nil {
if _, err = c.Podcasts.AddNewPodcast(rssURL, feed, user.ID); err != nil {
return &Response{
redirect: "/admin/home",
flashW: []string{fmt.Sprintf("could not create feed: %v", err)},