Wykres commitów

385 Commity (60a332768490e608919b255e3dd981fc16c1d30c)

Autor SHA1 Wiadomość Data
Ryan Barrett 15e3daff5e
switch outbound webmention source URLs from /render?id=... to /convert/...
#512
2023-05-24 16:32:00 -07:00
Ryan Barrett a3df7d6d30
make /render redirect to /convert/...
#512
2023-05-24 16:32:00 -07:00
Ryan Barrett 6d976854dc
add /render logic to /convert/... 2023-05-24 16:00:41 -07:00
Ryan Barrett df35ce16cc
AP users: add convert.py and /convert/... endpoint
#512
2023-05-24 15:18:31 -07:00
Ryan Barrett 30659a78f7
test_redirect: minor noop test data refactoring 2023-05-24 15:18:16 -07:00
Ryan Barrett af95521759
user page bug fix, add missing import
fixes https://console.cloud.google.com/errors/detail/COHl8dmZ9-i4Lw;time=P30D?project=bridgy-federated
2023-05-24 06:57:34 -07:00
Ryan Barrett cf86f4d808
AP users: extract out Protocol.serve() method
#512
2023-05-23 21:30:57 -07:00
Ryan Barrett 892047a10c
add Protocol metaclass and protocol.protocols global for storing subclasses 2023-05-23 15:15:28 -07:00
Ryan Barrett 6333b7126a
AP users: serve webfinger for external users
#512
2023-05-23 11:53:32 -07:00
Ryan Barrett e34db7e974
AP users: /r/: don't check for backlink 2023-05-23 09:35:35 -07:00
Ryan Barrett f933c7e237
AP users: serve AS2 for external homepage URLs
#512
2023-05-22 23:17:42 -07:00
Ryan Barrett 4f232ac732
AP users: serve AS2 for external URLs
#512
2023-05-22 15:27:43 -07:00
Ryan Barrett 259e982986
bluesky: remove sync XRPC method implementations
they're moving to arroba
2023-05-22 12:56:21 -07:00
Ryan Barrett a580470e2e
update tests for snarfed/granary@1e64e4fd44 2023-05-18 06:43:50 -07:00
Ryan Barrett a14aa7367a
wm => AP, error on follow without target
fixes https://console.cloud.google.com/errors/detail/CIDY9567zMDQrwE;time=P30D?project=bridgy-federated
2023-05-17 14:52:39 -07:00
Ryan Barrett 141932bb6d
update XRPC tests for granary bluesky test data changes 2023-05-15 11:39:23 -07:00
Ryan Barrett 593460ca1f
update tests for snarfed/granary@302a273b2b 2023-05-07 21:51:20 -07:00
Ryan Barrett 0ab3698db7
Bluesky: move most ATProto code to separate arroba library
https://github.com/snarfed/arroba
2023-05-06 14:41:06 -07:00
Ryan Barrett c2b51d278f
atproto: add MST Walker and Diff classes
test is passing with trivial data but failing with larger data, eg 1k initial elements. hrm.
2023-04-30 12:24:02 -07:00
Ryan Barrett abd822eee6
atproto: unify test setup (random seeds, test data) into testutil 2023-04-30 12:20:58 -07:00
Ryan Barrett ad8d710cd8
atproto: move signature handling into atproto_util 2023-04-29 15:46:08 -07:00
Ryan Barrett ff7f52fb5a
bluesky: move a few utils to new atproto_util module 2023-04-28 15:29:40 -07:00
Ryan Barrett 64f4f62ae9
bluesky: add models.AtpNode for storing repo blocks 2023-04-28 12:02:26 -07:00
Ryan Barrett 412f3416a4
big steps toward getting getRepo working
* generate commits
* sign commits
* serialize and include MST after each commit, not just at the end

phew!
2023-04-27 16:48:25 -07:00
Ryan Barrett e9555b4c4b
atproto: fix TID generation
bluesky team's base32 isn't base32, it's their own thing that preserves lexicographic sort order.

* atproto/packages/common-web/src/util.ts
* atproto/packages/common-web/src/tid.ts
2023-04-26 21:40:43 -07:00
Ryan Barrett e303f55fdf
models.User: generate and store an ECC P-256 keypair
for AT Proto
2023-04-25 14:04:29 -07:00
Ryan Barrett cdb81ed3e1
atproto: temporarily disable test_get_repo, it's not ready yet 2023-04-24 16:04:46 -07:00
Ryan Barrett 2758acc6cb
wm => AP bug fix: if source has multiple u-follow-ofs, store individual last_follows
fixes https://console.cloud.google.com/errors/detail/COGA_MbTzeDJqgE;time=P30D?project=bridgy-federated
2023-04-23 21:13:11 -07:00
Ryan Barrett 3985b2bea6
bluesky: implement com.atproto.sync.listRepos 2023-04-21 15:44:22 -07:00
Ryan Barrett 51b587cff4
bluesky: implement com.atproto.sync.getHead
also now getRepo test is failing with "Not a valid node: two subtrees next to each other," not sure why, I think this was latent and the new random seeds are triggering it.
2023-04-21 14:31:39 -07:00
Ryan Barrett 5b59baa88f
bluesky: implement com.atproto.sync.getBlocks 2023-04-20 21:34:16 -07:00
Ryan Barrett df7b919161
bluesky: implement getRepo earliest and latest 2023-04-20 19:28:39 -07:00
Ryan Barrett 3493aafca8
Bluesky: implement com.atproto.sync.getRepo
first com.atproto.sync XRPC! 🎉
2023-04-20 19:28:39 -07:00
Ryan Barrett 5aba64004f
wm => AP: inline most objects as bare string ids, not composite objects
for interop
2023-04-19 16:21:21 -07:00
Ryan Barrett d9b1223392
wm => AP: fix reposts from h-cites that turn into composite objects
instead of bare string id objects. thanks @gRegorLove for reporting!
2023-04-19 14:37:42 -07:00
Ryan Barrett d2ab48b23e
switch circular imports to runtime imports; split out flask_app.py from app.py
runtime imports are just as bad, but...meh. eventually I'll untangle them for real. #486
2023-04-18 17:18:17 -07:00
Ryan Barrett b39d673f12
add Object.expire property for datastore TTL to garbage collect old Objects
right now, auto-delete some ephemeral activities after 90d. for #456. https://cloud.google.com/datastore/docs/ttl
2023-04-18 09:16:16 -07:00
Ryan Barrett ad6cc61d3f
wm => AP: test that we don't deliver reply updates to all followers
for #479
2023-04-17 19:24:18 -07:00
Ryan Barrett 6066c87f73
wm => AP: deliver reposts to all followers
fixes #476
2023-04-17 19:20:22 -07:00
Ryan Barrett d76ff8b6e1
test_webmention: reuse assert_deliveries in more places, check sig and key 2023-04-17 16:56:44 -07:00
Ryan Barrett 212f2b11ec
wm => AP: add delete support
fixes #30
2023-04-17 15:36:29 -07:00
Ryan Barrett aae0944926
Bluesky MST: optimize tests a bit 2023-04-16 16:32:48 -07:00
Ryan Barrett 4f21d190cb
Bluesky MST: test_is_order_independent works 2023-04-16 16:32:48 -07:00
Ryan Barrett 86144ba50f
Bluesky MST: fix bug in create_parent, add __unicode__ and __repr__ 2023-04-16 16:32:48 -07:00
Ryan Barrett ca22120110
Bluesky MST: fix bug in append_merge 2023-04-16 16:32:48 -07:00
Ryan Barrett 4f4647327d
Bluesky MST: fix bug in split_around 2023-04-16 16:32:48 -07:00
Ryan Barrett ee7e4fa555
Bluesky MST: more implementation and tests 2023-04-16 16:32:48 -07:00
Ryan Barrett 96c6f9808f
Bluesky MST tests: fix base 32 decoding, other tweaks 2023-04-16 16:32:48 -07:00
Ryan Barrett 7b7b3f2cd1
more Bluesky MST. test_add works for 10 leaves! 2023-04-16 16:32:48 -07:00
Ryan Barrett a084aea831
bluesky MST: implement TIDs
pretty sure this isn't right though, due to the base32 padding. I get TID strings like AX4T-3WL-2GJE-A====CU====== vs the example 3hgb-r7t-ngir-t4 in https://atproto.com/guides/data-repos#identifier-types
2023-04-16 16:32:47 -07:00