Actually fix pagination with tombstoned items

This commit is contained in:
Shadowfacts 2020-06-01 23:00:49 -04:00
parent 28a35b8241
commit bb0607b959
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ defmodule FrenzyWeb.FeedController do
items =
Item
|> where([i], i.feed_id == ^id)
|> where([i], not i.tombstone and i.feed_id == ^id)
|> Paginator.paginate(params)
|> limit(50)
|> Repo.all()

View File

@ -103,7 +103,7 @@ defmodule FrenzyWeb.GroupController do
items =
Item
|> where([i], i.feed_id in ^feed_ids)
|> where([i], not i.tombstone and i.feed_id in ^feed_ids)
|> Paginator.paginate(params)
|> limit(50)
|> preload(:feed)