Since previous commit, get only effectively serves search for ids or
displays. Remove the machinery to deal with other stuff and simplify
error checking.
Only accept an ID or the display name. Stop accepting kind_id and raw
names. As a consequence of the latter, the endpoint now always returns
exactly one tag.
Use a very naive approach: define similarity as the number of shared
tags between two media pieces. It can be implemented in SQL and produces
decent results.
- write site's HTTP 400 in a single line
- add an space at the end of the query parameter in site's random/tag in
order to start writing after a space on focus
- use <%= ... %> instead of manually escaping a smiley
Make it return a hash for page numbers and shortcuts. Move logic
handling for the shortcuts from the templates to the helper. Make the
pager length configurable. Add a helper for producing the shortcuts'
links.