Skip to content

Commit

Permalink
opts
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Oct 21, 2024
1 parent b2a99e3 commit 98e55b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/feed_activities.ex
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ defmodule Bonfire.Social.FeedActivities do
iex> Bonfire.Social.FeedActivities.feed_paginated([], base_query: query)
"""
def feed_paginated(filters \\ [], opts \\ []) do
opts = to_options(opts)

do_query(filters, opts, opts[:base_query] || default_query())
|> paginate_and_boundarise_feed(opts)

Expand Down Expand Up @@ -558,6 +560,8 @@ defmodule Bonfire.Social.FeedActivities do
end

defp do_feed(feed_id_or_ids_or_name, opts) do
opts = to_feed_options(opts)

if opts[:cache] do
key = feed_id_or_ids_or_name

Expand Down

0 comments on commit 98e55b4

Please sign in to comment.