From 38fce8a9aaffc037d8d6ceaecec7e11653517be1 Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Tue, 10 Oct 2023 17:30:36 -0700 Subject: [PATCH] Allow FTP fetch --- actions/fetch.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/actions/fetch.go b/actions/fetch.go index 54c8d8b9..1f178bee 100644 --- a/actions/fetch.go +++ b/actions/fetch.go @@ -37,12 +37,13 @@ func StaticFetch(ctx context.Context, cfg config.Config, dbf model.Finder, feedI // Prepare fetchOpts := fetch.Options{ - FeedID: feed.ID, - URLType: urlType, - FeedURL: feedUrl, - Storage: cfg.Storage, - Secrets: cfg.Secrets, - FetchedAt: time.Now().In(time.UTC), + FeedID: feed.ID, + URLType: urlType, + FeedURL: feedUrl, + Storage: cfg.Storage, + Secrets: cfg.Secrets, + FetchedAt: time.Now().In(time.UTC), + AllowFTPFetch: true, } if user != nil { fetchOpts.CreatedBy = tt.NewString(user.ID())