Commit Graph

5321 Commits

Author SHA1 Message Date
evazion
d1216f260e dmails: add search[title_matches] param. 2017-04-29 11:50:25 -05:00
evazion
27d6025425 dmails: convert search form to simple form. 2017-04-29 11:50:25 -05:00
evazion
e8b9361226 notes: display error message when note saving fails. 2017-04-28 21:37:14 -05:00
evazion
a3ecfdb79d notes: disallow blank note bodies. 2017-04-28 19:34:27 -05:00
evazion
8e5491a536 saved searches: add query normalization tests. 2017-04-28 16:26:44 -05:00
evazion
0b63dd32d1 saved searches: don't change tag ordering within queries.
Normalize queries aside from the tag ordering when they're saved.
Normalize queries including ordering when they're sent to listbooru.

This way tag ordering within searches is kept in the /saved_searches listing.
2017-04-28 16:24:07 -05:00
evazion
3eef8a62cc Remove unused css. 2017-04-28 15:08:07 -05:00
evazion
7aae76d80a responsive layout: move sidebars beneath main content.
Incidentally fixes bug with notes being mispositioned on top of the
sidebar because the sidebar was declared as float: left.
2017-04-28 15:05:46 -05:00
evazion
25aaef5afe Add tests for noter:<any|none>, comm:<any|none> metatags. 2017-04-26 16:51:34 -05:00
evazion
b0626a9124 Add commenter:<any|none> metatags. 2017-04-26 16:51:34 -05:00
evazion
69d9cf3927 Add noter:<any|none> metatags. 2017-04-26 16:51:34 -05:00
Albert Yi
641f56dc2a Merge pull request #3002 from evazion/feat-artist-search
Fix #2994: More options for artist search page
2017-04-26 14:00:25 -07:00
Albert Yi
9f19e2b78f Merge pull request #3001 from evazion/feat-unfav-hotkey
/posts: add shift+F to unfavorite hotkey.
2017-04-26 13:55:56 -07:00
r888888888
6842056d19 partial fix for #3000 2017-04-26 13:37:12 -07:00
Albert Yi
4226b52198 Merge pull request #2999 from evazion/fix-post-appeals-search
/post_appeals: add blank option to Resolved dropdown.
2017-04-26 13:21:39 -07:00
Albert Yi
41b245d19d Merge pull request #2998 from evazion/fix-quote-stripping
Fix [quote] stripping for comments, forum post replies.
2017-04-26 12:43:30 -07:00
Albert Yi
974133a697 Merge pull request #2997 from evazion/fix-navbar-tagsubs
Remove tag subscriptions link from /posts navbar.
2017-04-26 12:35:55 -07:00
r888888888
b7f207180c eliminate responsive tag list 2017-04-26 12:26:51 -07:00
evazion
ec895d6412 /artists: add URL/Creator/Active/Banned/Has Tag fields to search form. 2017-04-26 14:08:18 -05:00
evazion
b61fdc2c6b /artists: convert search form to simple form. 2017-04-26 14:08:18 -05:00
evazion
d1188d8184 /artists: add search params: has_tag, name/other_names/group_name/any_name/url_matches. 2017-04-26 14:08:18 -05:00
evazion
59a179fa15 /posts: add shift+F to unfavorite hotkey. 2017-04-25 01:50:14 -05:00
evazion
9a0bc6802b /post_appeals: add blank option to Resolved dropdown. 2017-04-24 22:45:02 -05:00
evazion
146dc116d6 /posts: remove tag subscriptions from navbar. 2017-04-24 21:44:40 -05:00
evazion
c586a66e1f dtext: recognize [QUOTE] tags when quoting comments, forum_posts.
Fixes a bug with capitalized [QUOTE] tags not being handled properly
when quoting comments or forum posts.
2017-04-24 21:15:47 -05:00
evazion
869f1610fc comments: use server-side quote-stripping instead of reimplementing in js. 2017-04-24 21:15:47 -05:00
evazion
18424531fa Merge mentions quote-stripping code into DText quote-stripping code. 2017-04-24 21:15:42 -05:00
r888888888
ba1399abef desktop mode redirects back to original page 2017-04-24 15:54:04 -07:00
Albert Yi
13189e60b8 Merge pull request #2992 from evazion/fix-calc-reltags-from-posts
Fix slow related tag calculations when searching single metatags.
2017-04-24 14:13:41 -07:00
Albert Yi
72367bb8d4 Merge pull request #2991 from evazion/fix-2990
Fix #2990: Wiki Autocomplete Misses On Certain Meta-wikis
2017-04-24 14:12:23 -07:00
Albert Yi
57148b0690 Merge pull request #2989 from evazion/fix-notes-listing
Default /notes to listing notes, not posts.
2017-04-24 13:46:51 -07:00
evazion
8404064854 related_tag_calculator.rb: fix memcache lookup in inner loop.
Remove the category constraint option from RelatedTagCalculator.calculate_from_posts.
It slows things down and isn't used.

This method is used to calculate the related tags sidebar during
searches for single metatags. Using Tag.category_for in the inner loop
caused a memcache call on every iteration. At 100 posts per page and
20-30 tags per post, this led to up to 2000-3000 total memcache calls,
which significantly slowed pageloads.
2017-04-23 17:10:20 -05:00
evazion
30872ebb41 Fix #2990: Wiki Autocomplete Misses On Certain Meta-wikis
/wiki_pages?search[order]=post_count didn't include wiki pages that
didn't belong to a tag. This was due to doing an inner join on the tags
table instead of a left outer join.
2017-04-23 16:55:15 -05:00
evazion
808fe0411a /notes, /note_versions: fix N+1 queries on note creators, updaters. 2017-04-23 14:59:36 -05:00
evazion
989917cb07 /notes, /note_versions: use numbered paginator. 2017-04-23 14:59:36 -05:00
evazion
e6d1842545 /notes: default to listing notes, not posts. Remove group_by=post.
The posts listing is replaced by a link to order:note.
2017-04-23 14:59:36 -05:00
evazion
4631262374 Fix broken tag autocomplete on multiple pages.
Mark all tag <input>s with a `data-autocomplete` attribute, instead of
hardcoding a list of html IDs to autocomplete in javascript.

This way should be less error prone. It fixes autocomplete in several places:

* Autocomplete for the search box on /posts didn't work in the
  responsive layout. This was because /posts has two search boxes that
  both have the id `tags`: one in the normal sidebar, and one in the
  responsive tag list. $("#tags") only initialized autocomplete on the
  first one.

* Autocomplete didn't work on the aliases or implications pages. This
  was due to selecting the wrong html ids.
2017-04-22 15:24:03 -05:00
evazion
f403763d8b /tag_implications: convert to simple form. 2017-04-22 15:23:14 -05:00
evazion
738c14a8a3 /tag_aliases: convert to simple form. 2017-04-22 15:23:14 -05:00
evazion
2db3af56dd /tags: convert search form to simple form. 2017-04-22 15:23:14 -05:00
evazion
0ed0fb095b /notes/search: convert to simple form. 2017-04-22 13:04:04 -05:00
evazion
d8fb4399cf /artist_commentaries/search: convert to simple form. 2017-04-22 13:04:04 -05:00
Albert Yi
ecf00260c3 Merge pull request #2982 from evazion/fix-ss-dropdown
Fix saved search dropdown on post show page.
2017-04-22 01:04:47 -07:00
Albert Yi
421b9668b2 Merge pull request #2983 from evazion/fix-favtags-xss
Fix self-xss in favorite tags.
2017-04-22 01:04:31 -07:00
Albert Yi
f503c80e0b Merge pull request #2984 from evazion/fix-mp4-avc1
Support mp4s of ftyp "avc1"
2017-04-22 01:04:11 -07:00
Albert Yi
d836815622 Merge pull request #2985 from evazion/feat-notes-ruby
Allow <ruby> tags for marking up furigana in notes.
2017-04-22 01:03:47 -07:00
Albert Yi
bd38fb3de1 Merge pull request #2986 from evazion/fix-ss-migrations
Fix broken tag subscription migrations.
2017-04-22 01:03:30 -07:00
evazion
0b2493b2dd tag subscriptions: fix broken saved search migrations. 2017-04-21 22:48:52 -05:00
evazion
f1552539f7 notes: allow <ruby> tags for marking up furigana. 2017-04-21 14:31:05 -05:00
evazion
5f9c423542 upload.rb: detect mp4s with an ftyp of avc1. 2017-04-20 23:08:34 -05:00