Commit Graph

5149 Commits

Author SHA1 Message Date
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
Albert Yi
f1ffd6d9c9 fix typo 2017-01-11 11:39:14 -08:00
Albert Yi
f1c78d9a29 stylize hints 2017-01-11 11:39:14 -08:00
Albert Yi
70321cd98f Merge pull request #2832 from evazion/fix-previous-names
Fix #2830: Lower Permission to See Previous Usernames
2017-01-11 11:38:53 -08:00
evazion
1f325c19da Show previous usernames to members; link to actual change requests. 2017-01-11 13:07:39 -06:00
Albert Yi
d0dbe9605e Merge pull request #2828 from evazion/fix-artcomms
Fix artist commentary dialog submitting wrong form.
2017-01-11 10:54:08 -08:00
Albert Yi
48c3920216 Merge pull request #2829 from evazion/fix-post-unvotes-js
Fix voting not showing 'undo vote' link if you already voted.
2017-01-11 10:53:53 -08:00
evazion
51df14f07a Fix voting not showing 'undo vote' link if you already voted. 2017-01-11 11:00:16 +00:00
evazion
34b6f22594 Clean up artcomms partial. 2017-01-11 04:48:44 -06:00
evazion
8a67cb847d Fix artist commentary dialog submitting wrong form. 2017-01-11 04:48:44 -06:00
Albert Yi
87bcc07fae enable ragel parser for remaining dtext endpoints 2017-01-10 15:12:37 -08:00
Albert Yi
8db970f9f3 skip api check for forum and comment endpoints 2017-01-10 15:06:34 -08:00
Albert Yi
63c218d71d fixes #2825: Restore search within pool versions IP in mod tools 2017-01-09 18:12:54 -08:00
Albert Yi
1724f89742 Merge pull request #2826 from r888888888/related-tags-html
Related tags html page (fixes #2750)
2017-01-09 18:11:22 -08:00
Albert Yi
1efe47f2f9 fix bug to token_count increment 2017-01-09 17:37:46 -08:00
Albert Yi
61c40e042b Merge pull request #2823 from evazion/fix-fav-order
Fix ordering of favlist
2017-01-09 17:36:46 -08:00
Albert Yi
5445b341bc fixes #2822: Post vote API: returns 200 for both success and failure; fixes bug with x-api-limit header 2017-01-09 17:31:14 -08:00
Albert Yi
f2a5d45db0 implement token bucket rate limiting 2017-01-09 17:31:14 -08:00
Type-kun
7c98c60129 Simple HTML page and form for related tags 2017-01-09 19:18:18 +05:00
Type-kun
49a72e4bf6 Include user profile link in IP search results 2017-01-09 16:21:27 +05:00
Type-kun
160d2a47aa Fixes #2758 2017-01-09 15:53:58 +05:00
Type-kun
9da5e67a65 Another partial fix for issue #2824, which also affected ip bans and feedback
Also fixed minor errors with IP bans
2017-01-09 13:57:16 +05:00
Type-kun
c44c40c759 Partial fix for issue #2824 2017-01-08 23:58:52 +05:00
evazion
2763f7e137 Fix ordering of favlists (sort by users who favorited first).
Fix bug introduced in 6e62a4c.
2017-01-08 00:57:36 +00:00
Albert Yi
3baa69c46c Merge pull request #2820 from evazion/fix-md5-validation
Posts: don't revalidate md5 uniqueness on every update.
2017-01-05 12:40:28 -08:00
evazion
b9fa5a0816 posts: don't revalidate md5 uniqueness on every update. 2017-01-05 14:31:02 -06:00
Albert Yi
284008e078 eliminate antivoter concept 2017-01-03 17:11:00 -08:00
Albert Yi
094f30a44e Merge pull request #2819 from evazion/opt-favorited-users
Reduce SQL queries on /posts/:id
2017-01-03 16:29:20 -08:00
Albert Yi
0f7570aaaf Merge pull request #2817 from evazion/fix-mention-autocomplete
Fix @mention autocomplete for comments & forum posts.
2017-01-03 16:20:35 -08:00
Albert Yi
b9a1e115fb add additional mod actions 2017-01-03 16:02:36 -08:00
Albert Yi
4d698bf98b add modaction helper 2017-01-03 15:04:47 -08:00
Albert Yi
ad4b55c334 fixes #2815: Posts Screen Edit Mode Bug 2017-01-03 14:54:10 -08:00
Albert Yi
59d32d22b0 Merge pull request #2814 from evazion/fix-2813
Fix #2813: /posts/random.json does not redirect nicely.
2017-01-03 14:43:18 -08:00
Albert Yi
4859a803c6 show description diffs in pool version listing 2017-01-03 14:40:53 -08:00
evazion
4e8006ae3b Optimize rendering of post commenter names.
Eager load post comments' creators and updaters. Fixes an N+1 queries
problem when rendering commenter names at:

    views/comments/partials/show/_comment.html.erb:6
    views/comments/partials/show/_comment.html.erb:20

while rendering /posts/:id pages.
2017-01-03 20:14:05 +00:00
evazion
6e62a4cc33 Optimize Post#favorited_users.
Load users in one query rather than one query per user.
2017-01-03 18:21:05 +00:00
evazion
469f48a118 Fix @mention autocomplete for comments & forum posts.
Fix comment autocomplete (broken in 1257639). Also fix forum post
autocomplete (didn't work when editing forum posts).
2017-01-02 12:53:30 -06:00
Type-kun
3d2b81d1e8 Commented out references to pool_versions table 2017-01-02 11:44:06 +05:00
evazion
ef3f390bba Fix #2813: /posts/random.json does not redirect nicely. 2017-01-01 04:04:46 -06:00
Albert Yi
e67dec5581 indicate on missing searches report whether a wiki page exists 2016-12-29 16:59:08 -08:00