Ryan Barrett
|
1d36d31064
|
set User-Agent header globally
|
2022-03-24 11:18:33 -07:00 |
Ryan Barrett
|
96dba41c9b
|
logging: use separate loggers for each module with their names
|
2022-02-11 22:38:56 -08:00 |
Ryan Barrett
|
4eaf70aa51
|
add 'ignored' status for AP requests where the target has no webmention endpoint
|
2022-01-11 22:40:44 -08:00 |
Ryan Barrett
|
2f28be09be
|
convert %-formatted strings with args in logging.* calls to f-strings
|
2021-12-27 22:45:57 -08:00 |
Ryan Barrett
|
fdd42ad1d4
|
override preferredUsername to always be the user's domain
...since Mastodon looks up [preferredUsername]@fed.brid.gy. see #77
|
2021-10-22 21:17:45 -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
|
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
|
cf12817212
|
Flask port: error handling bug fixes, other misc tweaks
|
2021-08-16 11:47:31 -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
|
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
|
56cc66d530
|
flask: add common.RegexConverter
based on https://github.com/rhyselsmore/flask-reggie
|
2021-07-12 13:49:48 -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
|
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
|
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
|
fa2a970b2c
|
flask: render: add caching, get_required_param, update tests
|
2021-07-06 13:45:56 -07:00 |
Ryan Barrett
|
d4a94ff75a
|
migrate from webmention-tools to webutil.webmention
|
2021-04-25 11:40:19 -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
|
f74a6d33fa
|
add synthetic id to outgoing AS2 activities
for #12
|
2021-03-10 20:37:28 -08:00 |
Ryan Barrett
|
c12b675a7a
|
webfinger: handle acct:[domain]@fed.brid.gy requests
fixes #73
|
2020-12-30 10:26:48 -08:00 |
Ryan Barrett
|
bddab29420
|
demote logging.error since it creates an error in StackDriver Error Reporting
|
2020-05-19 08:08:12 -07:00 |
Ryan Barrett
|
46067640b6
|
remove errant debug logging
|
2020-03-05 10:15:54 -08:00 |
Ryan Barrett
|
d39562b849
|
add .7z, .zip, and .rar to TLD blocklist
|
2020-03-03 14:57:54 -08:00 |
Ryan Barrett
|
9eae3087fd
|
404 requests for root paths that aren't user domains
lots of these are fediverse tools sniffing for specific implentations, eg mastodon etc. /siteinfo.json, /status.php, etc.
|
2020-03-02 10:50:43 -08:00 |
Ryan Barrett
|
df6b0b58ba
|
unify request handler classes and handle_exception; move away from HOST[_URL]
fixes:
* https://console.cloud.google.com/errors/CN68rO-5sOK9cQ
* https://console.cloud.google.com/errors/CJWCu8b5_ureAg
* https://console.cloud.google.com/errors/CN6W4Zy7irzgOA
* https://console.cloud.google.com/errors/CN278MyjhZbtOQ
|
2020-01-31 14:40:11 -08:00 |
Ryan Barrett
|
ee7b324525
|
bring back HOST_URL override to fed.brid.gy, for URLs emitted into AP
|
2019-12-26 18:18:44 -08:00 |
Ryan Barrett
|
02d36b3b1f
|
migrate to the app engine standard python 3 runtime!
https://cloud.google.com/appengine/docs/standard/python3/python-differences
https://cloud.google.com/appengine/docs/standard/python/migrate-to-python3/
|
2019-12-25 22:26:26 -08:00 |
Ryan Barrett
|
ab55c9d62c
|
ujson.dumps/loads() => util.json_dumps/loads()
|
2019-12-24 23:26:58 -08:00 |
Ryan Barrett
|
99a5c35ae3
|
switch from webutil.util.memcache_response to cache_response
|
2019-11-12 21:28:44 -08:00 |
Ryan Barrett
|
faf676e8bb
|
switch from json to ultrajson for performance
https://github.com/esnme/ultrajson/
|
2019-10-29 07:06:15 -07:00 |
Ryan Barrett
|
7c9a03c827
|
unify HTTP fetching, HTML and mf2 parsing, and error handling into webutil
see:
* snarfed/granary#171
* snarfed/webutil@f994884b2b
* snarfed/oauth-dropins@f5b6e73530
* snarfed/granary@284eb11508
|
2019-10-03 21:08:26 -07:00 |
Ryan Barrett
|
c623a295c6
|
misc noop cleanups based on LGTM alerts
https://lgtm.com/projects/g/snarfed/bridgy/?mode=list
|
2019-09-19 11:57:16 -07:00 |
Ryan Barrett
|
879f6d1752
|
return 400 on more bad inputs, eg webmention source URLs
|
2019-08-13 13:29:31 -07:00 |
Ryan Barrett
|
dd0a0d964b
|
don't assert on posts without u-id or u-url
fixes https://console.cloud.google.com/errors/CNLV_6K-gtPJDw
|
2019-07-24 13:03:15 -07:00 |
Ryan Barrett
|
7c8a2a4603
|
fix postprocess_as2() crash on multiply-valued inReplyTo
fixes https://console.cloud.google.com/errors/COTu_PXPjJ2ZWw
|
2019-06-06 06:35:57 -07:00 |
Ryan Barrett
|
088e9cfaf7
|
skip outbound webmentions to same domain as source
|
2019-04-16 11:42:17 -07:00 |
Ryan Barrett
|
aa45f0c526
|
convert AP mentions to home page webmentions
for #46
|
2019-04-16 10:46:40 -07:00 |
Ryan Barrett
|
5bc639216e
|
more error handling for AS2 objects without id or URL
follows b7e44c9295 . fixes https://console.cloud.google.com/errors/CLnu14G46vHLOg
|
2019-04-15 08:14:37 -07:00 |
Ryan Barrett
|
b7e44c9295
|
don't choke on AS2 objects without id or URL
fixes https://console.cloud.google.com/errors/CO6w076w6oX32wE
|
2019-04-12 20:47:28 -07:00 |
Ryan Barrett
|
6e7c2008e9
|
handle SSL failures when fetching arbitrary URLs
fixes https://console.cloud.google.com/errors/CJOuzd2b1sehPA
|
2019-04-10 08:08:02 -07:00 |
Ryan Barrett
|
b237e52d6a
|
add outbox, summary, and publicKey.id properties to actors
for #39, for pixelfed
|
2019-01-04 08:05:07 -08:00 |
Ryan Barrett
|
b7f89dce99
|
webmention => AP: handle actor/attributedTo id as well as url
for #40
|
2018-12-11 10:59:41 -08:00 |
Ryan Barrett
|
a9324adceb
|
webmention => AP: put images into AS2 'attachment' field for Mastodon
for https://github.com/snarfed/bridgy-fed/issues/33#issuecomment-440965618
|
2018-11-23 22:17:37 -08:00 |
Ryan Barrett
|
ec3da6a485
|
webmention => AP: fix Salmon after big Create refactoring
for #33
|
2018-11-20 08:24:26 -08:00 |
Ryan Barrett
|
2bb418dc72
|
webmention => AP support for u-follow-of => Follow
|
2018-10-24 21:28:52 -07:00 |