aboutsummaryrefslogtreecommitdiff
path: root/internal/reader/handler/handler.go
diff options
context:
space:
mode:
authorGravatar Pontus Jensen Karlsson <pontus@jensenkarlsson.se> 2024-08-08 04:48:41 +0000
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-08-12 20:20:44 -0700
commitade412f45352bc7491d3a3a6be0a019466431955 (patch)
tree22709bea0a515edab835cdc785536a267e378d76 /internal/reader/handler/handler.go
parent6fb7e84ce1bb38b386a6f6effd1bb3b09d2b72e0 (diff)
downloadv2-ade412f45352bc7491d3a3a6be0a019466431955.tar.gz
v2-ade412f45352bc7491d3a3a6be0a019466431955.tar.zst
v2-ade412f45352bc7491d3a3a6be0a019466431955.zip
fix: Honor hide_globally when creating a new feed through the api
TestGetGlobalEntriesEndpoint was failing because CreateFeed ignored HideGlobally, this fixes that.
Diffstat (limited to 'internal/reader/handler/handler.go')
-rw-r--r--internal/reader/handler/handler.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/reader/handler/handler.go b/internal/reader/handler/handler.go
index 2663b3b5..3a588b04 100644
--- a/internal/reader/handler/handler.go
+++ b/internal/reader/handler/handler.go
@@ -169,6 +169,7 @@ func CreateFeed(store *storage.Storage, userID int64, feedCreationRequest *model
subscription.BlocklistRules = feedCreationRequest.BlocklistRules
subscription.KeeplistRules = feedCreationRequest.KeeplistRules
subscription.UrlRewriteRules = feedCreationRequest.UrlRewriteRules
+ subscription.HideGlobally = feedCreationRequest.HideGlobally
subscription.EtagHeader = responseHandler.ETag()
subscription.LastModifiedHeader = responseHandler.LastModified()
subscription.FeedURL = responseHandler.EffectiveURL()