Ryan Barrett
|
99033b3ea4
|
logs: use @flask_util.cached
...to include query string in cache key
|
2021-09-08 22:14:45 -07:00 |
Ryan Barrett
|
c6f0c417a0
|
/r: handle trailing garbage chars
fixes https://console.cloud.google.com/errors/CO-fpZfMq_6ktgE
|
2021-09-01 19:48:37 -07:00 |
Ryan Barrett
|
e4d285523f
|
activitypub: handle connection failures better in webmention discovery
fixes https://console.cloud.google.com/errors/CPj1-sSij7DcXQ
|
2021-09-01 08:19:38 -07:00 |
Ryan Barrett
|
17d2066008
|
use @flask_util.cached
|
2021-08-28 07:18:46 -07:00 |
Ryan Barrett
|
cdb9a519e6
|
common.get_as2 bug fix: don't clobber werkzeug's HTTPException.response
store requests.Response in separate requests_response attr
|
2021-08-18 08:53:00 -07:00 |
Ryan Barrett
|
f4aefff6f4
|
minor noop test refactoring
|
2021-08-18 08:04:14 -07:00 |
Ryan Barrett
|
cf12817212
|
Flask port: error handling bug fixes, other misc tweaks
|
2021-08-16 11:47:31 -07:00 |
Ryan Barrett
|
5913a9ea6a
|
switch oauth_dropins symlink to oauth_dropins_static, drop it from repo
it's now local clone only. this avoids import confusion, ie whether importing oauth_dropins uses the virtualenv's installed version or the symlinked files directly, which eg ran oauth-dropins's tests along with granary's/bridgy's, and caused Circle breakages like https://app.circleci.com/pipelines/github/snarfed/granary/767/workflows/21608f75-bb99-47dc-83ef-78d4f4793ed1/jobs/2819
corresponds to snarfed/granary@00294822d6, snarfed/bridgy@b3f50d8248
|
2021-08-06 11:19:33 -07:00 |
Ryan Barrett
|
d562a099ea
|
Flask port: switch back to webutil's logs
corresponds to snarfed/webutil@53cab7eca0
|
2021-08-06 11:03:46 -07:00 |
Ryan Barrett
|
32d9e2bf6c
|
move common.error() to webutil.flask_util
corresponds to snarfed/webutil@10c088cebd
|
2021-08-06 11:01:58 -07:00 |
Ryan Barrett
|
a27ebc4697
|
Flask routing tweak, don't redirect URLs with empty path elements
|
2021-08-06 10:28:56 -07:00 |
Ryan Barrett
|
40ad6a4afa
|
move handle_exception and default_modern_headers to webutil
corresponds to snarfed/webutil@cdcaa3e897
|
2021-07-27 21:58:05 -07:00 |
Ryan Barrett
|
b23705e97e
|
don't store a Response for OStatus/Salmon unless we actually attempt delivery
|
2021-07-20 15:55:16 -07:00 |
Ryan Barrett
|
2e3360a54b
|
move Flask utils to oauth_dropins.webutil.flask_util
corresponds to snarfed/webutil@5574bb23fa
|
2021-07-17 21:22:13 -07:00 |
Ryan Barrett
|
b2dcff7428
|
flask: port /log
|
2021-07-13 08:06:35 -07:00 |
Ryan Barrett
|
e1aace0655
|
flask: use new regex URL route converter
|
2021-07-12 14:25:00 -07:00 |
Ryan Barrett
|
73ec212c0b
|
flask: temporarily remove log links from /responses
...until we port LogHandler to Flask.
|
2021-07-12 13:59:27 -07:00 |
Ryan Barrett
|
56cc66d530
|
flask: add common.RegexConverter
based on https://github.com/rhyselsmore/flask-reggie
|
2021-07-12 13:49:48 -07:00 |
Ryan Barrett
|
87e0cb8be7
|
flask: minor tweaks
|
2021-07-11 23:04:25 -07:00 |
Ryan Barrett
|
bcf31047e7
|
flask: minor tweak, avoid double /s in host-meta templates
|
2021-07-11 18:01:10 -07:00 |
Ryan Barrett
|
80a0969575
|
flask: add modern headers
from webutil.handlers.ModernHandler
|
2021-07-11 17:55:59 -07:00 |
Ryan Barrett
|
4a55739b91
|
flask: port /.well-known/host-meta*, other misc tweaks
all tests pass!
|
2021-07-11 16:50:44 -07:00 |
Ryan Barrett
|
371a92a5db
|
flask: port XrdOrJrdHandler, finish porting webfinger
|
2021-07-11 16:30:14 -07:00 |
Ryan Barrett
|
007f8f16fd
|
flask: first pass at porting webfinger; incomplete!
incomplete because I also need to port webutil.handlers.XrdOrJrdHandler
|
2021-07-11 13:39:19 -07:00 |
Ryan Barrett
|
4fffc073d2
|
flask: port webmention, add exception handler
|
2021-07-11 08:48:28 -07:00 |
Ryan Barrett
|
c17cb3394b
|
flask: fix test_common, drop unused common.canonicalize_domain decorator
|
2021-07-10 08:53:37 -07:00 |
Ryan Barrett
|
b8be570d66
|
flask: port activitypub
|
2021-07-10 08:07:40 -07:00 |
Ryan Barrett
|
f26aed5cbb
|
flask: port salmon
|
2021-07-08 22:50:33 -07:00 |
Ryan Barrett
|
13cd3263b0
|
flask: port /superfeedr/
|
2021-07-08 07:36:19 -07:00 |
Ryan Barrett
|
bb5ae9910d
|
flask: port /wm/
|
2021-07-08 07:25:44 -07:00 |
Ryan Barrett
|
5b8699bec1
|
flask: port /r/, start to port common
|
2021-07-07 21:02:13 -07:00 |
Ryan Barrett
|
0b7388fed3
|
flask: move app to app.py, get templates working, port /responses
|
2021-07-07 08:07:20 -07:00 |
Ryan Barrett
|
86a4afdc97
|
flask: render: get tests working
|
2021-07-06 20:34:35 -07:00 |
Ryan Barrett
|
fa2a970b2c
|
flask: render: add caching, get_required_param, update tests
|
2021-07-06 13:45:56 -07:00 |
Ryan Barrett
|
27c2623700
|
flask: start porting render.py
|
2021-07-05 20:54:23 -07:00 |
Ryan Barrett
|
02498b34d7
|
app config autoscaling changes to try to keep instance count down
snarfed/bridgy#1051
|
2021-07-01 13:27:26 -07:00 |
Ryan Barrett
|
a4c5a8e4c5
|
redirect: handle single /s that got collapsed by the browser (etc)
|
2021-06-28 22:52:04 -07:00 |
Ryan Barrett
|
60e272a447
|
master => main (git branch)
|
2021-05-04 22:58:56 -07:00 |
Ryan Barrett
|
d4a94ff75a
|
migrate from webmention-tools to webutil.webmention
|
2021-04-25 11:40:19 -07:00 |
Ryan Barrett
|
13cbca0909
|
docs: mention RSS/Atom bots as an alternative
fixes #72
|
2021-04-04 22:16:00 -07:00 |
Ryan Barrett
|
064acef4b0
|
verify SSL certs (more)
requires snarfed/webmention-tools@0059627cfd
|
2021-04-03 21:15:28 -07:00 |
Ryan Barrett
|
cb24aae3bd
|
salmon webfinger discovery: handle bad JSON
|
2021-03-29 22:54:33 -07:00 |
Ryan Barrett
|
db732650a4
|
add https://w3id.org/security/v1 to actors' @context for HTTP sigs
fixes #76
|
2021-03-22 23:55:14 -07:00 |
Ryan Barrett
|
4a0ef5cb7c
|
minor bug fix for logging headers in webfinger
|
2021-03-12 20:44:51 -08:00 |
Ryan Barrett
|
17fa355226
|
webfinger: misc noop comment and test tweaks
|
2021-03-12 14:35:59 -08:00 |
Ryan Barrett
|
a4fede524f
|
webfinger: add XRD support
for #12
|
2021-03-12 06:52:09 -08:00 |
Ryan Barrett
|
2bae0c999c
|
/r/: drop "User not found for domain" message on 404
security through obscurity (heh), no need to signal that spammers can make a user somehow to get their redirects working.
|
2021-03-11 20:31:48 -08:00 |
Ryan Barrett
|
f9e8a5abd2
|
webfinger tests: expect application/jrd+json for JRD, not application/json
for snarfed/webutil@4b277abaa4
|
2021-03-11 14:14:33 -08:00 |
Ryan Barrett
|
f74a6d33fa
|
add synthetic id to outgoing AS2 activities
for #12
|
2021-03-10 20:37:28 -08:00 |
Ryan Barrett
|
670ece3fc6
|
revise docs for activitypub vs ostatus, etc
|
2021-03-08 17:23:32 -08:00 |