Albert Yi
60cee5f452
Merge pull request #3989 from evazion/fix-3987
...
Wiki pages: convert other_names column to array (#3987 )
2018-11-19 16:23:32 -08:00
Albert Yi
4077c4776c
Merge pull request #3986 from r888888888/refactor-saved-searches
...
Refactor saved searches
2018-11-15 13:44:49 -08:00
evazion
41ff05c121
artists: convert other_names to array ( #3987 ).
2018-11-15 14:31:16 -06:00
Albert Yi
0508b127fd
continue refactoring savedsearch
2018-11-15 12:06:13 -08:00
evazion
29fdfc42a4
pools/gallery: allow searching for collection pools ( #3992 ).
...
Default to showing only series pools when not doing a search. Otherwise,
when doing a search, show both series and collection pools.
2018-11-15 12:22:51 -06:00
evazion
308a5021b4
wiki pages: convert other_names to array ( #3987 ).
2018-11-13 19:18:11 -06:00
evazion
b660aeefd7
application record: add array_attribute method.
...
Add `array_attribute` method that defines helper methods for converting
array attributes to or from strings.
2018-11-13 19:18:11 -06:00
evazion
115ed16a96
pools: store post_ids as array instead of string ( fix #3979 )
2018-11-08 15:09:31 -06:00
evazion
19b92acabc
Fix #3970 : Make "Copy all notes" not builder exclusive.
2018-11-04 16:42:55 -06:00
evazion
39374a70d3
posts/show: rename tags params to q in various places.
...
Fixup for 011a6f1f7 .
2018-10-30 11:32:07 -05:00
evazion
705217d337
Fix new dtext shortlinks redirecting to nonexistent pages.
...
Fix the following dtext shortlinks redirecting to nonexistent pages:
* flag #1
* appeal #1
* mod action #1
* bur #1
2018-10-25 23:00:43 -05:00
Albert Yi
4d07183a1d
Merge pull request #3957 from evazion/fix-related-tags
...
Related tags: build html server-side, eliminate cookies
2018-10-24 17:34:14 -07:00
Albert Yi
b999fc86ea
mixpanel fixes
2018-10-22 16:54:38 -07:00
Albert Yi
5097babfaa
add opt out for mixpanel tracking
2018-10-22 16:01:39 -07:00
evazion
6148cb39a2
Fix nested blank search params not being stripped from searches.
...
From https://danbooru.donmai.us/forum_topics/9127?page=258#forum_post_151308 :
When you do a user search (from https://danbooru.donmai.us/users/search )
the results only include those with someone in the inviter field.
The bug was that nested blank search params (/users?search[inviter][name_matches]=)
didn't get stripped from the search.
2018-10-17 16:11:44 -05:00
Albert Yi
f4be87d4b7
include 200 posts in sitemap
2018-10-16 15:29:41 -07:00
Albert Yi
af73084515
scope sitemap results to yesterday
2018-10-16 15:28:51 -07:00
evazion
6223f89a99
related tags: refactor /related_tags.js to avoid updating unchanged columns.
...
Refactor the /related_tags.js call so that when the "Related tags"
button is clicked, it only replaces the columns that actually changed,
not the entire related tags section.
This avoids rebuilding the Recent / Frequent / Translated Tags / Artist
columns every time the "Related tags" button is clicked.
2018-10-15 18:41:32 -05:00
evazion
d536f75505
related tags: eliminate recent_tags cookie ( #3955 ).
2018-10-12 21:20:06 -05:00
evazion
ae52b487e8
related tags: eliminate favorite_tags cookie ( #3955 ).
2018-10-12 21:18:15 -05:00
evazion
4e2944ee06
related tags: build html server-side instead of client-side.
2018-10-12 21:18:15 -05:00
Albert Yi
e133a598a3
fixes #3936
2018-10-12 15:17:32 -07:00
Albert Yi
6ca9b65716
add dynamic sitemap.xml
2018-10-11 10:13:54 -07:00
evazion
c78dece411
tag corrections: remove distributed cache logic ( #3943 ).
...
Remove logic for displaying the state of the tag category cache on both
servers.
2018-10-04 13:46:10 -05:00
evazion
151fa00933
tests: fix tests for /comments/new, /post_flags/new.
2018-10-01 10:38:15 -05:00
evazion
dfb7cf6994
comments: add standalone new comment form.
...
Add standalone /comments/new page to allow commenting if javascript is
disabled.
2018-09-29 20:42:38 -05:00
evazion
9ac59aeadd
comments.js: clean up comment quoting.
...
Replace Comment.quote with a remote new.js.erb call.
2018-09-29 20:42:38 -05:00
evazion
f886f2fdb3
posts/show: load flag/appeal/replacement dialogs via ajax ( #3922 ).
2018-09-26 20:01:14 -05:00
evazion
6fe883c316
posts index: clean up limit:<n> / order:random parsing ( #2894 )
...
* Move the limit:<n> / order:random metatag parsing from the controller
to the post set.
* Introduce `Tag.has_metatag?` and use it to parse these metatags
instead of using a regex (#2894 ).
2018-09-20 19:23:47 -05:00
evazion
235271706b
Fix #3913 : Remove legacy /post/create.xml endpoint.
2018-09-20 12:25:16 -05:00
Albert Yi
ed5b2ad443
throw error on counts/posts endpoint during a timeout ( #2170 )
2018-09-19 13:34:50 -07:00
evazion
1fce794b99
artist urls: add /artist_urls index page.
2018-09-15 19:58:05 -05:00
evazion
10ca4dd3ad
artists: replace artist finder with fetch source data.
...
* On posts, automatically trigger "Fetch source data" when clicking the
Edit tab, instead of triggering the artist finder button. This way we
find both the artist and the translated tags in one ajax call.
* Remove the "Artist" finder button next to the source field. This isn't
necessary given that "Fetch source data" finds the artist itself.
* Remove the /artists/finder.json API endpoint. This is no longer used
after removing the "Artist" finder button.
2018-09-11 20:09:25 -05:00
Albert Yi
42f7b17a30
Merge pull request #3883 from evazion/refactor-anonymous-user
...
Refactor AnonymousUser
2018-09-11 12:09:25 -07:00
evazion
de10ea66a1
<role>_only: fix role checking logic to check ip bans last.
...
Make <role>_only methods check the role first and ip bans last. This
avoids hitting the database for anonymous users, since they'll always
fail the is_<role>? check before the ip check.
2018-09-09 21:53:24 -05:00
evazion
056fe365f2
Render "Fetch source data" box html server-side.
...
Instead of calling /sources.json and rendering the "Fetch source data"
box client-side in Javascript, call /sources.js so we can render the
html server-side.
2018-09-08 15:42:16 -05:00
evazion
950fcdb7b2
uploads: add new source:<url> dupe check ( fix #3873 )
...
* On the /uploads/new page, instead of just showing a "This post has
probably already been uploaded" message, show the actual thumbnails of
posts having the same source as what the user is trying to upload.
* Move the iqdb results section up top, beside the related posts section.
2018-09-06 20:43:20 -05:00
evazion
07c0695ac1
uploads: remove "this post was probably already uploaded" dupe check.
...
Also makes it so that using the bookmarklet always triggers async upload
preprocessing. Before it was only triggered when the source passed a
dupe check, but that check was inaccurate (#3873 ).
2018-09-06 20:43:04 -05:00
Albert Yi
e5010bebf9
allow reportbooru to update post counts
2018-09-05 14:04:46 -07:00
r888888888
7f85dd27f9
use image url for iqdb proxy
2018-08-29 20:56:24 -07:00
Albert Yi
64c3bc18a7
rename ref and url fields to upload_source and upload_referer_url
2018-08-29 16:46:04 -07:00
Albert Yi
66e413b540
Adds fuzzy string matching and prefix matching
2018-08-28 16:41:52 -07:00
Albert Yi
68c30961ac
Merge pull request #3805 from r888888888/refactor-sources
...
Refactor sources
2018-08-28 12:13:15 -07:00
evazion
6ff70c5002
mod actions: separate account upgrades from promotions ( fix #3841 )
2018-08-26 11:12:04 -05:00
evazion
3dafca9aec
Fix #3842 : Mods can demote other mods or admins.
2018-08-25 13:52:50 -05:00
Albert Yi
762dc3da24
Refactor sources
2018-08-24 12:10:51 -07:00
evazion
05ad112831
Fix #3835 : Related tags update vulnerability.
...
Also fixes deprecated call to `render :text`.
2018-08-24 12:16:23 -05:00
evazion
eef8b9c323
posts/show: fix flash message when faving/unfaving posts.
...
Bug: if you faved a post, then opened another page in a separate tab,
then the "You have favorited this post" flash message would appear in
the separate tab.
Fixes regression in bcaee199 .
2018-08-15 20:14:51 -05:00
Albert Yi
0314dc9751
more consistent behavior of CurrentUser.root_url
2018-08-15 16:08:10 -07:00
evazion
bcaee199f5
favorites: unify create.js.erb & destory.js.erb code paths.
2018-08-12 15:51:18 -05:00