posts: eliminate pool_id, favgroup_id url params.

Replace the `pool_id` and `favgroup_id` url params:

    https://danbooru.donmai.us/posts/123?pool_id=456
    https://danbooru.donmai.us/posts/123?favgroup_id=456

with the `q` param:

    https://danbooru.donmai.us/posts/123?q=pool:456
    https://danbooru.donmai.us/posts/123?q=favgroup:456
This commit is contained in:
evazion
2021-01-29 21:41:09 -06:00
parent 1e778dbbf6
commit 27cac98516
9 changed files with 54 additions and 46 deletions

View File

@@ -19,7 +19,7 @@
<% if @favorite_group.post_count == 0 %>
<%= render "post_sets/blank" %>
<% else %>
<%= post_previews_html(@posts, favgroup_id: @favorite_group.id, show_deleted: true) %>
<%= post_previews_html(@posts, tags: "favgroup:#{@favorite_group.id}", show_deleted: true) %>
<%= numbered_paginator(@posts) %>
<% end %>