Commit Graph

65 Commits

Author SHA1 Message Date
codl f9a6bfe260
rename scales to timescales.py 2017-08-29 15:00:08 +02:00
codl 007aec7529
flakes8 2017-08-29 14:46:32 +02:00
codl 2c4d6b9f63
fix issues raised by bandit 2017-08-29 13:26:32 +02:00
codl 78013ed1e9
twiddle knob
i set the timeout based on a timeit on my desktop instead of my server
like an Absolute Fool
2017-08-29 10:56:21 +02:00
codl e4dbdf98ee
reduce ttl and timeout on brotli generation
recent changes (csrf tokens) have made brotli caches much less durable
since each session for a same user gets a different page
2017-08-29 09:35:16 +02:00
codl d2c3f7025c
Revert "add shoddy statsd support"
This reverts commit 8c0c521f6f.

yea this is useless and a waste of time
2017-08-28 23:25:26 +02:00
codl 8c0c521f6f
add shoddy statsd support 2017-08-28 17:13:12 +02:00
codl ccf1ca9c56
add csrf tokens 🔒🔒🔒🔒 2017-08-25 10:50:11 +02:00
codl e99a045c41
following the last commit, it's prudent to invalidate all static urls
ive been meaning to change that url structure anyway because it's real
goofy to have these 'static-483914848324' directories
2017-08-24 18:49:37 +02:00
codl 40fbea082f
add more granular brotli cache header 2017-08-23 11:42:53 +02:00
codl c036664422
uh oh oops 2017-08-20 18:54:01 +02:00
codl 0360de3d95
😗 2017-08-20 18:52:09 +02:00
codl 069a8ab9fb
shorten footer and link directly to the running commit 2017-08-20 18:48:43 +02:00
codl 06f144f8b4
allow mastodon users to preserve DMs 2017-08-20 18:23:38 +02:00
codl b63f2f2b06
don't store post body 2017-08-20 18:23:38 +02:00
codl fc58833bf5
cachebust: don't 500 on non-existant files 2017-08-20 12:43:29 +02:00
codl 0dbfa5e0bc
fix 500 when logging in with mastdon with an existing oauth token 2017-08-19 14:32:31 +02:00
codl ff358ed64f
ahhhhhh!! mastodon support 2017-08-19 13:12:22 +02:00
codl d3d93c3cef
ghfjklghjdkflhgjfklhgjkdflshgjdflshgjkdflshgjdfklshgjkdflghjkdflhgjkldfshjgkldfhjgldhfjkgldhfjgklfdhsjgklhfjkslghjdfklsg
mastodon why
2017-08-19 13:12:22 +02:00
codl c32332d07c
d 2017-08-14 22:57:30 +02:00
codl 88b0eb121b
disable policy on accounts that have no tokens 2017-08-13 11:11:21 +02:00
codl efeb5b6f41
extend /api/viewer to include various timers
also add a last_refresh field to accounts
2017-08-12 23:07:16 +02:00
codl 639d209a95
add header showing brotli cache status 2017-08-12 22:01:42 +02:00
codl cdff524e3d
fix 500 on tweet archive upload 2017-08-12 20:32:51 +02:00
codl d07503dd6f
edit settings dynamically 2017-08-12 01:04:22 +02:00
codl 54545a3a3d
remove unnecessary import 2017-08-11 21:15:34 +02:00
codl 98255c00a8
brotli: use text mode when appropriate 2017-08-11 21:05:11 +02:00
codl 5656f86fcb
brotli: wait & see if compression finishes within reasonable time 2017-08-11 20:58:32 +02:00
codl dc7e70ae8d
lol
thread.run() runs it locally

thread.start() runs it in a thread
2017-08-11 20:56:45 +02:00
codl ed69bdfb12
serve static brotli or gzip compressed files as well 2017-08-11 20:13:41 +02:00
codl 10abb9cd2f
working brotli cache 2017-08-11 19:13:37 +02:00
codl a42c54aa50
messy brotli experiment 2017-08-11 17:57:32 +02:00
codl ca2798a428
add rate limits 2017-08-10 17:07:39 +02:00
codl 994e0b1366
refresh session cookie on every page view 2017-08-09 14:28:30 +02:00
codl b428788fc0
oops precedence
interestingly enough it doesn't matter here but, let's be correct
2017-08-09 09:22:34 +02:00
codl 7a9106e3bd
be a dork about years too 2017-08-09 09:19:18 +02:00
codl 0296f05d8a
lol im a fuckin dork 2017-08-09 09:14:57 +02:00
codl 6539d3b39f
fix weirdness when setting intervals 2017-08-09 09:14:42 +02:00
codl 8192d5a268
fix: re-raise exception on twitter tempoarary errors 2017-08-09 05:16:58 +02:00
codl ac6f7203d8
add ability to keep posts with media (close #1) 2017-08-08 15:40:56 +02:00
codl 724d54355c
handle revoked privileges more smoothly 2017-08-08 00:29:38 +02:00
codl 017aa64c03
add cachebusting for static files 2017-08-07 21:50:31 +02:00
codl a28333ab6e
empty string is zero in intervals 2017-08-07 16:35:10 +02:00
codl bb2bcc68c1
fix more 500s 2017-08-07 16:35:10 +02:00
codl 5b953122c3
fix crash when tweets have been deleted oob 2017-08-07 14:15:08 +02:00
codl 1ba30bdb0a
better sanity checking on decomposed intervals 2017-08-07 14:05:38 +02:00
codl 9722dbde26
ahhhhhhhhhhhhhh!!!!!!!!!!!!!!!!!!!!!!!!! posts 2017-08-03 20:01:06 +02:00
codl 1562182e33
clean up and sanitise model for release 2017-08-03 11:51:37 +02:00
codl 3537bd34ab
dont crash when there are no posts to refresh 2017-08-02 06:19:08 +02:00
codl e08a0eea13
ahhh im super good at computing 2017-08-02 01:35:09 +02:00