aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/api/api_integration_test.go10
-rw-r--r--internal/reader/handler/handler.go1
2 files changed, 11 insertions, 0 deletions
diff --git a/internal/api/api_integration_test.go b/internal/api/api_integration_test.go
index df8d93a0..c4bef142 100644
--- a/internal/api/api_integration_test.go
+++ b/internal/api/api_integration_test.go
@@ -2011,6 +2011,16 @@ func TestGetGlobalEntriesEndpoint(t *testing.T) {
t.Fatal(err)
}
+ feedIDEntry, err := regularUserClient.Feed(feedID)
+
+ if err != nil {
+ t.Fatal(err)
+ }
+
+ if feedIDEntry.HideGlobally != true {
+ t.Fatalf(`Expected feed to have globally_hidden set to true, was false.`)
+ }
+
/* Not filtering on GloballyVisible should return all entries */
feedEntries, err := regularUserClient.Entries(&miniflux.Filter{FeedID: feedID})
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()