1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Fix page validator

This commit is contained in:
Maksym Pavlenko
2017-11-10 17:49:21 -08:00
parent 87af1d1f90
commit d90dd97a72

View File

@ -50,7 +50,7 @@ func (s Service) makeFeed(req *api.CreateFeedRequest, identity *api.Identity) (*
feed.CreatedAt = now feed.CreatedAt = now
feed.LastAccess = now feed.LastAccess = now
if identity.FeatureLevel == api.ExtendedPagination { if identity.FeatureLevel >= api.ExtendedPagination {
if feed.PageSize > 600 { if feed.PageSize > 600 {
feed.PageSize = 600 feed.PageSize = 600
} }