Albert Yi
30cef2e5e5
Merge pull request #2929 from evazion/fix-post-events-mods
...
Fix exceptions on /posts/:id/events, /moderator/dashboard; fix XSS in data-source.
2017-03-21 16:19:06 -07:00
r888888888
c4b5998e64
fixes #2692 : Rework bookmarklet preview
2017-03-21 15:41:20 -07:00
evazion
d1debecd0b
Fix XSS in post thumbnail data attributes.
2017-03-21 17:17:19 -05:00
evazion
2aa3f9ceba
/moderator/dashboard: fix exception when PostArchive isn't enabled.
...
NoMethodError exception raised
undefined method `each' for nil:NilClass
app/views/moderator/dashboards/_activity_tag.html.erb:10:in `_app_views_moderator_dashboards__activity_tag_html_erb__4366063041301266690_47304449138520'
app/views/moderator/dashboards/show.html.erb:10:in `_app_views_moderator_dashboards_show_html_erb___734721021521262965_47304462731220'
2017-03-21 17:17:19 -05:00
evazion
47ecf034a7
/posts/:id/events - fix exception when viewed by mod.
...
NoMethodError exception raised
undefined method `creator' for #<PostEvent:0x007f9a298e64d8> Did you mean? creator_id
app/views/post_events/index.html.erb:23:in `block in _app_views_post_events_index_html_erb__2088986421112502721_70150054247640'
app/views/post_events/index.html.erb:18:in `each'
app/views/post_events/index.html.erb:18:in `_app_views_post_events_index_html_erb__2088986421112502721_70150054247640'
app/controllers/post_events_controller.rb:6:in `index'
2017-03-21 17:17:18 -05:00
r888888888
022d9ede7f
expose bulk revert interface
2017-03-21 14:40:46 -07:00
r888888888
91c21b1bac
fixes #2880 : Change link from User page "Comments in xxxx posts" to comment_bumped
2017-03-21 14:05:32 -07:00
r888888888
23da9c6f89
fixes #2911
2017-03-21 13:56:48 -07:00
r888888888
c6fe1f7f54
remove tag check
2017-03-20 16:24:31 -07:00
r888888888
70d057f8f3
move saved search option to sidebar
2017-03-20 16:19:15 -07:00
r888888888
73895a1a27
make saved searches table sortable
2017-03-20 15:44:33 -07:00
r888888888
c90de90291
increase range of s3 proxy
2017-03-20 14:01:19 -07:00
r888888888
7c6243bca0
remove unused listbooru check in session loader
2017-03-20 13:52:54 -07:00
Albert Yi
baa1760b3d
Merge pull request #2928 from evazion/feat-flagger-commenter-ips
...
Make commenter/flagger/appealer IPs visible to mods
2017-03-20 13:46:08 -07:00
Albert Yi
cae86d8290
add role check for displaying ip address
2017-03-20 13:45:56 -07:00
Albert Yi
fece0e3c82
Merge pull request #2927 from evazion/fix-post-events-resolved
...
/posts/:id/events: list is_resolved correctly for appeals.
2017-03-20 13:33:36 -07:00
Albert Yi
9389d1a3a0
Merge pull request #2926 from evazion/fix-mod-dashboard
...
Fix post version reference on /moderator/dashboard
2017-03-20 12:31:30 -07:00
Albert Yi
fe9f31d871
remove timeout block
...
PostArchive isn't subject to statement timeouts so it isn't needed
2017-03-20 12:31:08 -07:00
Albert Yi
3cfacec4bf
Merge pull request #2924 from evazion/feat-hidden-notice
...
/posts: add notice when posts are hidden.
2017-03-20 12:30:15 -07:00
Albert Yi
56bb1d7ba9
Merge pull request #2923 from evazion/feat-source-xml
...
Add /sources.xml endpoint; include backtraces in json
2017-03-20 12:27:07 -07:00
Albert Yi
92fe0c7b7c
Merge pull request #2922 from evazion/fix-artcomm-fetch-source
...
When merging artcomms, list source as html page url, not image url.
2017-03-20 12:22:18 -07:00
evazion
85d1f18ba5
comments: make commenter ip addresses visible to mods.
2017-03-19 23:41:25 -05:00
evazion
396d466a9b
/posts/:id - make flagger/appealer ip addresses visible to mods.
2017-03-19 23:41:09 -05:00
evazion
5ba1df5502
/posts/:id/events: list is_resolved correctly for appeals.
...
/posts/:id/events incorrectly lists appeals as always being resolved.
This is because events UNION together appeals and flags, which doesn't
quite work because for appeals is_resolved is a method, not an
attribute. is_resolved was hardcoded to true so it'd work in the UNION.
This changes PostEvent to be a wrapper object around PostFlag /
PostAppeal, instead of a UNION. PostEvent delegates everything to the
inner flag/appeals object, so that is_resolved works correctly.
Also, this incidentally fixes a problem with /posts/:id/event.xml not
serializing correctly.
2017-03-19 22:47:10 -05:00
evazion
8341752931
fixup! /moderator/dashboard: fix post version reference.
2017-03-19 17:02:39 -05:00
evazion
cebf592e20
/moderator/dashboard: fix post version reference.
2017-03-18 05:18:01 -05:00
r888888888
d22d655d43
fix Post#set_tag_counts
2017-03-17 19:10:55 -07:00
r888888888
f1ba075bea
support disable_cache for Tag.categories_for
2017-03-17 18:41:33 -07:00
r888888888
5cef0321f2
switch to use Cache.get_multi for tag types
2017-03-17 18:36:53 -07:00
r888888888
c5cfca3a3c
fix bug with mobile styles
2017-03-17 16:59:58 -07:00
r888888888
3c30e30dc8
fix listbooru reference
2017-03-17 16:44:02 -07:00
r888888888
c3c4952e35
do not limit flags for system user
2017-03-17 12:17:27 -07:00
r888888888
ecdea34323
revert e7b3fae215
2017-03-17 12:13:27 -07:00
evazion
eda97dc1ff
/posts: add notice when posts are hidden.
2017-03-17 00:08:48 -05:00
evazion
935cefd27e
API: on error, include backtrace in json response.
...
Incidentally fixes issue with error responses inside /sources.json not
including the usual `{"success": false}`.
2017-03-16 18:11:43 -05:00
evazion
28bdfce9f6
/sources: add /sources.xml endpoint.
2017-03-16 18:10:30 -05:00
evazion
2051981170
When merging artcomms, list source as html page url, not image url.
2017-03-16 18:09:59 -05:00
r888888888
998a6494ed
drop post versions table
2017-03-16 15:56:42 -07:00
r888888888
78fdc79db9
add statement timeout to migration
2017-03-16 15:32:25 -07:00
r888888888
bdeba94b31
fix error case in saved search
2017-03-16 15:17:55 -07:00
r888888888
e7b3fae215
change daily flag limit to 5/day
2017-03-16 14:32:04 -07:00
r888888888
d9a26975ba
fix tests
2017-03-15 16:08:47 -07:00
r888888888
da06bee0ab
revamp saved search implementation
2017-03-15 15:36:48 -07:00
r888888888
79c0dc3647
fix double escape in gbq
2017-03-13 17:22:21 -07:00
r888888888
83a5856627
include cache proxy config for nginx
2017-03-13 16:26:07 -07:00
r888888888
e946d23fa7
enable s3 proxy (wave 1)
2017-03-09 18:18:06 -08:00
r888888888
97cc8b5931
ignore privacy mode settings for admins
2017-03-09 13:52:46 -08:00
r888888888
537a293761
add links for random samples of uploads and favs
2017-03-09 13:50:32 -08:00
r888888888
43f31529d7
fixes #2920 : "Undo" function not working for Post Versions
2017-03-09 11:44:28 -08:00
r888888888
865a2ca165
count searches even for tag links
2017-03-08 17:25:01 -08:00