Commit Graph

5188 Commits

Author SHA1 Message Date
evazion
c3fa653fc5 hotkeys: refactor to use .on(), namespaces.
* Use .on() instead of .bind() because bind is deprecated in jquery 3.0.
* Ensure enable-js-navigation is always respected.
* Namespace keybindings so they may be disabled by userscripts with
  e.g. $(document).off("keydown.danbooru") or $(document).off("next_page").
2017-01-24 02:45:55 -06:00
Albert Yi
6430a9b0a4 Merge pull request #2855 from evazion/feat-comment-metatags
Add order:comment_bumped, order:comment_bumped_asc metatags.
2017-01-23 11:22:17 -08:00
r888888888
c7b5a4e229 add references to user statistics page about saved searches 2017-01-23 10:56:39 -08:00
evazion
601b439f96 Add order:comment_bumped, order:comment_bumped_asc metatags. 2017-01-21 11:10:40 +00:00
r888888888
48e66cddbb fixes #2849: IP address search is broken 2017-01-20 15:37:26 -08:00
r888888888
e80096bf19 fixes #2850: NoMethodError exception when sending DMail 2017-01-20 12:37:43 -08:00
Albert Yi
fa94eafef3 Merge pull request #2852 from evazion/fix-deleted-name-changes
Fix #2851: Account deletion should remove name change requests.
2017-01-20 11:35:54 -08:00
Albert Yi
33183389db Merge pull request #2853 from evazion/fix-name-change-api
Fix user name change reasons being public in API
2017-01-20 11:34:31 -08:00
evazion
c6966268a2 Remove 'reason' from name change request form; update copy. 2017-01-19 23:42:39 +00:00
evazion
afb8eeea30 Fix exploit making user name change reasons being public in API. 2017-01-19 23:41:36 +00:00
evazion
7486bb0add Fix #2851: Account deletion should remove name change requests.
Hides name change requests for deleted users (username matches /user_[0-9]+~*/).
2017-01-19 22:32:13 +00:00
Type-kun
75c13cc953 Possible fix for issue #2849 2017-01-19 14:51:53 +05:00
r888888888
bfa56a860c fixes #2415: "Random post" causes RecordNotFound exceptions 2017-01-18 14:12:12 -08:00
r888888888
a919da4dd6 add id attributes to secondary links for posts 2017-01-17 17:59:37 -08:00
r888888888
ec3ad3bb41 Revert "redirect legacy post index"
This reverts commit 4b1cbb2319.
2017-01-17 17:57:27 -08:00
r888888888
f9e2e1c0d7 add script to fix cache counters 2017-01-17 15:54:02 -08:00
r888888888
237c997ae1 remove usage of increment! #2835 2017-01-17 15:46:21 -08:00
r888888888
8333673b62 add trigram index to user names 2017-01-17 15:31:22 -08:00
r888888888
a53341d112 fixes #2846: revert postvote js change 2017-01-17 14:56:14 -08:00
Albert Yi
268b7b99ad fix nil error 2017-01-16 15:41:46 -08:00
Albert Yi
ae442c3391 fixes #2760: unable to register an account with a blank email 2017-01-16 14:56:08 -08:00
Albert Yi
04c221bf1e update dtext gem 2017-01-16 13:32:53 -08:00
Albert Yi
bdac591266 fixes #2838 2017-01-16 12:57:43 -08:00
Albert Yi
a49394e6cd Merge pull request #2842 from evazion/fix-user-name-changes
Minor user name changes improvements.
2017-01-16 11:50:51 -08:00
Albert Yi
6b5b92e02e Merge pull request #2840 from evazion/fix-pixiv-dupe-orig
Fix #2839: "Original" tag shows up twice in Pixiv source data
2017-01-16 11:35:52 -08:00
Type-kun
6a6d16852a Final fix for #2658 - close exploit with "new". 2017-01-16 19:34:31 +05:00
Type-kun
15b711e423 Fixes #2694: hide "revert all" when user has over 1000 post changes 2017-01-16 18:43:36 +05:00
Type-kun
5ce26c2e52 Remaining fixes to mod actions on user feedbacks and IP bans 2017-01-16 18:21:09 +05:00
Type-kun
56b2f95a1a Merge pull request #2841 from evazion/fix-user-feedback-modaction
Revert to: "Another partial fix for issue #2824, which also affected …
2017-01-16 17:37:17 +05:00
evazion
f0bdf565fe Name changes: add listing/new/help links to subnav. 2017-01-15 05:03:09 +00:00
evazion
d31a0c23f3 Name changes: add API endpoints for /user_name_change_requests. 2017-01-15 05:03:09 +00:00
evazion
9e9fdcb55d Name changes: make /user_name_change_requests member+; add reason/status/date. 2017-01-15 05:03:09 +00:00
evazion
047d3675e9 Name changes: don't show user feedback/stats for processed requests. 2017-01-15 05:03:09 +00:00
evazion
66e30b323c Name changes: remove delete request button. 2017-01-15 05:03:08 +00:00
evazion
f57f352838 Name changes: format processed requests more nicely. 2017-01-15 04:22:00 +00:00
Type-kun
02c243b968 Revert to: "Another partial fix for issue #2824, which also affected ip bans and feedback" 2017-01-14 21:53:33 +00:00
evazion
5f4535c408 Fix #2839: "Original" tag shows up twice in Pixiv source data 2017-01-14 21:14:06 +00:00
Type-kun
922276da6b Fixed typo in forum post mod action 2017-01-14 15:52:43 +05:00
Albert Yi
1323fe7977 Merge pull request #2834 from evazion/fix-ip-search
IP search fixes
2017-01-12 10:51:22 -08:00
evazion
cf046eecbf Fix ip addr search tests. 2017-01-12 09:28:52 +00:00
evazion
26c193dfb3 Change post_appeals.creator_ip_addr from integer to inet.
The existing values are garbage, rails stored e.g. "87.126.98.245" as
"87.126.98.245".to_i => 87. The column is nulled to indicate these IPs
are unknown.
2017-01-12 09:28:21 +00:00
evazion
3ca638bc92 Add IP addr indexes on comments & artist/artcomm/wikipage versions. 2017-01-12 09:28:21 +00:00
evazion
e8f71739be IpAddrSearch: search flags/appeals/artcomms/artists for IPs. 2017-01-12 09:28:21 +00:00
evazion
4848f18455 IpAddrSearch: fix pool_versions exception.
Fix pool_versions exception if PoolArchive db isn't set up. Prefer
ActiveRecord over raw sql so we can get real user objects so that the
view can use link_to_user.
2017-01-12 09:28:21 +00:00
evazion
fde7829bf6 IpAddrSearch: simplify search_by_user_name, remove unused @errors. 2017-01-12 09:15:15 +00:00
evazion
bdf3366bcf Link IP addresses to IP searches. 2017-01-12 09:15:14 +00:00
Albert Yi
63d5c7900d enable bulk reverts, fixes to postarchive 2017-01-11 16:20:04 -08:00
Albert Yi
962f5b3dae fix typo 2017-01-11 14:43:36 -08:00
Albert Yi
4b1cbb2319 redirect legacy post index 2017-01-11 14:25:45 -08:00
Albert Yi
0ab45ebc42 add postarchive model, fixes #2831: Replace Subscriptions Link With Search:All Link 2017-01-11 11:39:14 -08:00