From ade412f45352bc7491d3a3a6be0a019466431955 Mon Sep 17 00:00:00 2001 From: Pontus Jensen Karlsson Date: Thu, 8 Aug 2024 04:48:41 +0000 Subject: fix: Honor hide_globally when creating a new feed through the api TestGetGlobalEntriesEndpoint was failing because CreateFeed ignored HideGlobally, this fixes that. --- internal/api/api_integration_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/api/api_integration_test.go') 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}) -- cgit v1.2.3