aboutsummaryrefslogtreecommitdiff
path: root/internal/api/entry.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/entry.go')
-rw-r--r--internal/api/entry.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/api/entry.go b/internal/api/entry.go
index d8fc01f6..121d2701 100644
--- a/internal/api/entry.go
+++ b/internal/api/entry.go
@@ -149,6 +149,15 @@ func (h *handler) findEntries(w http.ResponseWriter, r *http.Request, feedID int
builder.WithLimit(limit)
builder.WithTags(tags)
builder.WithEnclosures()
+
+ if request.HasQueryParam(r, "globally_visible") {
+ globallyVisible := request.QueryBoolParam(r, "globally_visible", true)
+
+ if globallyVisible {
+ builder.WithGloballyVisible()
+ }
+ }
+
configureFilters(builder, r)
entries, err := builder.GetEntries()