mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 12:58:06 +01:00
Fix pagination attributes not being returned in ungroupable-only pages (#30688)
This commit is contained in:
parent
dd587d29b6
commit
45abddb302
2 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,6 @@ class REST::NotificationGroupSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def paginated?
|
def paginated?
|
||||||
instance_options[:group_metadata].present?
|
!instance_options[:group_metadata].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -58,6 +58,7 @@ RSpec.describe 'Notifications' do
|
||||||
|
|
||||||
expect(response).to have_http_status(200)
|
expect(response).to have_http_status(200)
|
||||||
expect(body_json_types.uniq).to eq ['mention']
|
expect(body_json_types.uniq).to eq ['mention']
|
||||||
|
expect(body_as_json[0][:page_min_id]).to_not be_nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue