evazion
491cae6c60
app controller: standardize api limit error handling.
...
* Refactor api_check to use render_error_page so that api limit errors
get logged to New Relic for analysis.
* Also standardize json error responses to return the error message in
`message` instead of `reason`.
2019-08-24 22:55:36 -05:00
evazion
f151285038
views: standardize page titles.
2019-08-24 22:55:35 -05:00
evazion
d4a243c8d1
footer: abbreviate git hash.
2019-08-19 00:46:31 -05:00
evazion
13f4dee59f
footer: only show keyboard shortcuts link on desktop.
2019-08-19 00:46:31 -05:00
evazion
5ceb71da8d
sitemap: split 'users' section into 'profile' + 'users'.
...
Move everything related to the current user into it's own 'Profile'
section.
2019-08-15 12:51:51 -05:00
evazion
f4db4b2eea
sitemap: add missing pages to site map.
2019-08-15 12:51:51 -05:00
evazion
90fa67d4c1
Remove unused terms of service banner.
...
No longer used, inadvertently hidden in a6233f297e .
2019-08-14 01:46:44 -05:00
evazion
5e78e36537
fixup! application controller: clean up exception handling.
2019-08-14 01:46:43 -05:00
evazion
00239c4901
favorites: fix error handling.
...
* Return HTTP 422 instead of HTTP 500 on "You have already favorited
this post" errors.
* Log unexpected errors in Ajax requests to the console.
2019-08-13 21:30:20 -05:00
evazion
e70cae457d
application controller: clean up exception handling.
...
* Simplify code.
* Show backtraces for all users, not just builders.
* Show backtraces only for unexpected server errors (status 5xx), not
for normal client errors (status 4xx).
* Log expected errors at info level (reduce noise in production logs).
2019-08-13 21:30:20 -05:00
evazion
35dfc704bc
application controller: fix bad file extension errors.
...
Fix requests with bad file extensions not always returning errors correctly:
* https://danbooru.donmai.us/posts.jpg
* https://danbooru.donmai.us/posts.blah
* https://danbooru.donmai.us/posts/bad.jpg
* https://danbooru.donmai.us/posts/bad.blah
2019-08-08 22:16:39 -05:00
evazion
c7cd43d30e
Drop unused mrtg view.
2019-08-07 22:11:07 -05:00
Albert Yi
a4542a2845
add disapprovals index to site map
2019-01-24 16:14:57 -08:00
Albert Yi
75e7177167
clarifiaction on sock puppet account rules
2018-12-05 16:57:05 -08:00
Albert Yi
0317b99330
add rules about sockpuppets
2018-11-29 17:10:17 -08:00
Albert Yi
f8e9170824
add caching for sitemap.xml
2018-10-11 10:15:45 -07:00
Albert Yi
6ca9b65716
add dynamic sitemap.xml
2018-10-11 10:13:54 -07:00
evazion
99babe19f3
views/static: removed unused templates.
2018-09-23 20:18:34 -05:00
evazion
b4cf423058
Clean backtraces in uploads/show, static/error.json.
2018-09-23 20:08:13 -05:00
evazion
bbb233b93f
css: remove unused or redundant rules.
2018-09-14 13:31:59 -05:00
evazion
fb91bbc6c5
Fix #3813 : Favorite limit can be bypassed.
2018-08-12 14:22:08 -05:00
Albert Yi
da825addb9
fix site map
2018-06-20 14:54:02 -07:00
Albert Yi
28663351d1
fixes #3757
2018-06-20 11:27:49 -07:00
Albert Yi
9510dead9f
refactor iqdb query support
2018-06-19 14:16:12 -07:00
evazion
e8f5d8d8c2
site map: add approvals index, move post events to own section.
2018-05-05 14:00:58 -05:00
evazion
e16ae00efc
Fix hardcoded http:// urls.
2018-04-19 00:45:10 -05:00
evazion
a03270dbf1
Add about:userscripts to site map.
2018-04-05 16:52:46 -05:00
r888888888
308e3670df
gracefully handle unavailable pg connection errors
2018-02-05 12:38:01 -08:00
Albert Yi
99c0c4ade6
Merge pull request #3479 from BrokenEagle/feat-add-iqdb-page
...
Initial add of IQDB standalone page
2018-01-02 10:29:27 -08:00
BrokenEagle
36ef8b4db3
Initial add of IQDB standalone page
2017-12-30 00:11:08 -08:00
Albert Yi
b315ee25bc
Merge pull request #3471 from BrokenEagle/fix-controller-views
...
Various fixes for controller views
2017-12-28 11:18:44 -08:00
BrokenEagle
31d3215dad
Fix page controller and action IDs
...
- Also fix affected CSS and JS files
2017-12-28 10:20:12 -08:00
evazion
0d69c03249
Fix "undefined method `is_builder?' for nil:NilClass" in static/error.html.erb.
...
`CurrentUser.user` may be nil if an exception is raised before it's
initialized.
2017-12-23 18:27:04 -06:00
evazion
5f1b7da95d
Fix "RuntimeError: can't modify frozen String" in static/error.html.erb.
...
Fixes a frequently occurring error in New Relic.
2017-12-23 18:23:41 -06:00
evazion
49577e3fac
/static/bookmarklet: add note using bookmarklet on Twitter with Firefox.
...
In Firefox, to use the bookmarklet on Twitter you must install version
1.1.3 of the Bookmarklets Context Menu addon. See https://danbooru.donmai.us/forum_topics/14794 .
2017-12-16 12:59:02 -06:00
r888888888
a95af95eae
move desktop mode to user pref
2017-12-15 13:52:25 -08:00
evazion
183a7e07e3
pixiv: fix failbooru when uploading bad pixiv id posts.
...
Fixes an "incompatible character encodings: UTF-8 and ASCII-8BIT"
exception when uploading a deleted Pixiv post.
Caused by the Pixiv API error message not having the encoding set to UTF-8.
2017-11-21 14:11:59 -06:00
r888888888
e70c2a3085
remove references to tag subscriptions
2017-11-17 13:45:17 -08:00
r888888888
8b1fca4662
add most viewed posts page
2017-11-10 16:21:01 -08:00
r888888888
2260d024b7
remove 'r' shortcut references for post listing
2017-10-30 14:51:05 -07:00
r888888888
874cc61147
fixes #3218
2017-09-14 13:40:21 -07:00
r888888888
cad22be8c7
fixes #3218
2017-09-14 10:37:14 -07:00
evazion
8b4e598a12
post replacements: add /post_replacements view.
2017-06-22 17:03:05 -05:00
evazion
aef7fcd34c
/static/bookmarklet: update bookmarklet description.
...
Better explain what the bookmarklet does, why it should be used, and how
to install it.
2017-06-15 22:29:18 -05:00
evazion
b80111ea05
/static/bookmarklet: fix typo in page id.
2017-06-15 22:29:18 -05:00
evazion
4806297fde
/static/bookmarklet: use HTTPS in bookmarklet if connected via HTTPS.
2017-06-15 22:28:14 -05:00
evazion
52e289e990
/static/terms_of_service: fix page wrapper ids.
2017-05-22 13:19:18 -05:00
evazion
8c88e87710
/forum_topics.atom: add atom feed for forum topics.
2017-05-13 10:37:59 -05:00
evazion
e68946e95d
/comments.atom: add atom feed for comments.
2017-05-13 10:37:58 -05:00
evazion
d6ca040198
/super_voters: remove in favor of /users?search[is_super_voter]=true search.
2017-05-02 23:15:19 -05:00