Wykres commitów

248 Commity (python3)

Autor SHA1 Wiadomość Data
Ryan Barrett 7d5b32a331
copy .gcloudignore from bridgy 2019-12-25 22:26:41 -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 035050a7aa
add humanfriendly (new granary dependency) and appengine_config hack for it 2019-10-29 09:06:21 -07:00
Ryan Barrett faf676e8bb
switch from json to ultrajson for performance
https://github.com/esnme/ultrajson/
2019-10-29 07:06:15 -07:00
ImgBotApp eade579cb6 [ImgBot] Optimize images
*Total -- 343.21kb -> 290.41kb (15.38%)

/static/activitypub_logo.svg -- 8.83kb -> 4.12kb (53.36%)
/static/mastodon_logotype_blue.png -- 13.76kb -> 8.26kb (39.95%)
/static/mastodon_logotype_dark.png -- 11.97kb -> 8.06kb (32.68%)
/static/activitypub_logotype.svg -- 18.42kb -> 13.18kb (28.45%)
/static/mastodon_logotype_white.png -- 12.51kb -> 9.35kb (25.24%)
/static/mastodon_logo.png -- 14.49kb -> 10.86kb (25.1%)
/static/hubzilla_logo.png -- 6.84kb -> 5.48kb (19.83%)
/static/ostatus_globe.jpg -- 54.49kb -> 48.52kb (10.94%)
/static/bridgy_logo.jpg -- 80.53kb -> 71.83kb (10.8%)
/static/bridgy_fed_logo.jpg -- 96.55kb -> 86.31kb (10.61%)
/static/ostatus_logo.png -- 5.18kb -> 5.04kb (2.81%)
/static/hubzilla_logotype.png -- 12.71kb -> 12.49kb (1.73%)
/static/mastodon_logo.svg -- 1.36kb -> 1.35kb (0.86%)
/static/mastodon_logotype_white.svg -- 5.57kb -> 5.56kb (0.19%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2019-10-16 11:48:05 -07:00
Ryan Barrett 68d86fce8f
move pip install -e's for oauth-dropins and granary into req't.freeze.txt 2019-10-06 07:35:08 -07:00
Ryan Barrett f5a893f2e5
update dependency versions
corresponds to snarfed/granary@d0c397b8d9 and snarfed/oauth-dropins@4e2b32531b
2019-10-05 23:04:53 -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 00d0cc5557
fully qualify relative Atom feed URLs before fetching
fixes #58. thanks again for reporting @fluffy-critter!
2019-09-23 11:20:11 -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 7617d4893e
update test to match granary new whitespace handling
...again. specifically snarfed/granary@0ac54362ae
2019-09-19 11:56:29 -07:00
Ryan Barrett 9ff0a28dd3
minor bug fix in AP Undo Follow error handling 2019-08-14 11:16:37 -07:00
Ryan Barrett ef8b9b13cc
bug fix in webmention => activitypub target fetch error handling
fixes https://console.cloud.google.com/errors/CPyMpaulkMKWZA
2019-08-13 16:23:47 -07:00
Ryan Barrett 27b643355f
make coveralls optional in circle, ie if it fails, don't fail the whole build 2019-08-13 16:15:04 -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 65044b081c
accept Undo of Follow even if Follower doesn't exist 2019-08-01 10:39:15 -07:00
Ryan Barrett f02c212f37
AP delivery: skip inactive followers 2019-08-01 10:36:39 -07:00
Ryan Barrett 4b70a89046
handle AP Undo of Follow
needed for eg mastodon when you unfollow and then try to refollow someone. on unfollow, mastodon sends an Undo, and waits for a 200 before it shows success and will let you refollow.
2019-08-01 10:32:50 -07:00
Ryan Barrett ad55cc95f3
update a handful of deps: requests, urllib3, jinja, etc. 2019-07-24 13:29:40 -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 6219e2d25e
update test to match granary new whitespace handling
specifically snarfed/granary@48b55441c5
2019-06-24 14:48:24 -07:00
Ryan Barrett c055f3aeba
drop HTML tags from webfinger error messages
fixes #53
2019-06-24 14:46:45 -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 fe96eeb5c3
better link for wordpress atom feed instructions 2019-04-30 11:13:36 -07:00
Ryan Barrett 43e6e9f514
update wordpress atom feed instructions
...since the plugin isn't in the wordpress.org plugin registry any more. i couldn't find another plugin (!) so i just gave manual instructions for adding the link to <head>. fixes #51.
2019-04-30 11:02:14 -07:00
Ryan Barrett 801bf4075d
detect non-domain requests, eg /nodeinfo.json, and 404
these are probably other mastodon instances assuming we're mastodon too.
2019-04-19 08:00:21 -07:00
Ryan Barrett 7c10585ad3
/response logs, once more with feeling 2019-04-18 11:18:14 -07:00
Ryan Barrett f76d796f71
docs: add u-photo for images
for #48, https://github.com/snarfed/bridgy-fed/issues/33#issuecomment-440395450
2019-04-17 09:06:20 -07:00
Ryan Barrett 90f7ac3e5b
add HTML meta redirects to mf2 rendered pages for end users
browsers will follow them, and hopefully all webmention receivers should/do ignore them, so we'll get the best progressive enhancement for both worlds.

IRC background:
https://chat.indieweb.org/dev/2019-04-11#t1555004634348000
https://chat.indieweb.org/dev/2019-04-16#t1555440757959400
2019-04-17 08:44:26 -07:00
Ryan Barrett 7a94537721
/responses: link logs for all requests, not just webmention => fed 2019-04-16 14:19:16 -07:00
Ryan Barrett 088e9cfaf7
skip outbound webmentions to same domain as source 2019-04-16 11:42:17 -07:00
Ryan Barrett 76686af538
cache lots of GET requests
this helps with requests that make external HTTP fetches, eg indieweb home pages/posts and federated profiles/posts, which change rarely.

in particular, outbound AP requests that get federated widely (eg Mastodon) result in all of those federated instances making the same bridgy fed requests at the same time, often within just a few seconds. more background: tootsuite/mastodon#4486
2019-04-16 11:05:18 -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 2e33354c27
add following and followers fields to AS2 actors
for #40. they currently both point to endpoint URLs that don't actually work yet, just like the recently added outbox field.
2019-01-14 11:08:08 -08:00
Ryan Barrett b7e8cd7d42
add conneg + AS2 support to /r/... redirect URLs
for pixelfed, #39. specifically, if the client asks for application/activity+json or application/ld+json (which pixelfed does), fetch and convert to AS2 instead of returning a 302 redirect.
2019-01-04 12:17:50 -08: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 aa5fac01dd
webmention => AP: fix error handling for outbound AP requests 2018-12-11 11:00:54 -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 0af5c136bb
webmention => AP/Salmon: handle no targets or followers, return 200
fixes https://console.cloud.google.com/errors/CIrig_2B6_i87AE
2018-11-27 15:14:56 -08:00
Ryan Barrett e964190162
webmention => AP: check for link to bridgy fed in source page
fixes #42
2018-11-27 10:27:12 -08:00
Ryan Barrett 9849c8a15d
docs: expand on discovery
fixes #18. thanks again @swentel!
2018-11-25 09:26:54 -08:00
Ryan Barrett cd8a13312c
webmention => AP: add original posts to docs
fixes #33
2018-11-24 22:35:20 -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 a52765821f
stop emailing me on every inbound webmention 2018-11-23 21:28:02 -08:00
Ryan Barrett a89e0038de
webmention => AP: Create: another bug fix for string Follower actors
for #33. follow-up to 2cb0dda2d1.
2018-11-20 09:47:01 -08:00