in speed mode, only support 10 pages of RSS for each query

This commit is contained in:
Shish 2020-02-02 01:59:25 +00:00
parent 84a4bb7f9a
commit ebea517c41

View file

@ -24,6 +24,9 @@ class RSSImages extends Extension
$search_terms = $event->get_search_terms();
$page_number = $event->get_page_number();
$page_size = $event->get_page_size();
if (SPEED_HAX && $page_number > 9) {
return;
}
$images = Image::find_images(($page_number-1)*$page_size, $page_size, $search_terms);
$this->do_rss($images, $search_terms, $page_number);
}