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
dependabot[bot]
24b6a985a1
build(deps): bump grpcio from 1.53.0 to 1.54.0
...
Bumps [grpcio](https://github.com/grpc/grpc ) from 1.53.0 to 1.54.0.
- [Release notes](https://github.com/grpc/grpc/releases )
- [Changelog](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md )
- [Commits](https://github.com/grpc/grpc/compare/v1.53.0...v1.54.0 )
---
updated-dependencies:
- dependency-name: grpcio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 06:01:24 -07:00
Ryan Barrett
46d22a1bb8
readme: link to developer docs
2023-04-17 21:09:16 -07:00
Ryan Barrett
449a40877f
add developer docs on readthedocs.io
2023-04-17 20:58:14 -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
fd85673fc2
document how to make posts searchable in the fediverse
...
fixes #352
2023-04-17 16:05:52 -07:00
Ryan Barrett
212f2b11ec
wm => AP: add delete support
...
fixes #30
2023-04-17 15:36:29 -07:00
Ryan Barrett
ba38d6853b
bug fixes for hs2019 HTTP Signatures algorithm, hard coding to rsa-sha256
2023-04-17 11:15:05 -07:00
Ryan Barrett
92ec40007b
webmention.py noop: move webmention_interactive() up under webmention_external()
2023-04-17 07:51:26 -07:00
dependabot[bot]
692fb4453a
build(deps): bump attrs from 22.2.0 to 23.1.0
...
Bumps [attrs](https://github.com/python-attrs/attrs ) from 22.2.0 to 23.1.0.
- [Release notes](https://github.com/python-attrs/attrs/releases )
- [Changelog](https://github.com/python-attrs/attrs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/python-attrs/attrs/compare/22.2.0...23.1.0 )
---
updated-dependencies:
- dependency-name: attrs
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 06:38:07 -07:00
dependabot[bot]
70f49e9a62
build(deps): bump soupsieve from 2.4 to 2.4.1
...
Bumps [soupsieve](https://github.com/facelessuser/soupsieve ) from 2.4 to 2.4.1.
- [Release notes](https://github.com/facelessuser/soupsieve/releases )
- [Commits](https://github.com/facelessuser/soupsieve/compare/2.4...2.4.1 )
---
updated-dependencies:
- dependency-name: soupsieve
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 05:59:55 -07:00
Ryan Barrett
842f8ac964
temporary: assume HTTP Signature algorithm=hs2019 means rsa-sha256
...
still trying to figure this out. see https://github.com/snarfed/bridgy-fed/issues/430#issuecomment-1510462267 , https://arewehs2019yet.vpzom.click/ , etc.
2023-04-16 16:35:31 -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
52a479b8c4
Bluesky MST: fixed trivial tree test!
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
Ryan Barrett
a8380c2cbf
lots more translating, implement DAG-CBOR encoding and CID generation
...
...in serialize_node_data and cid_for_entries
2023-04-16 16:32:47 -07:00
Ryan Barrett
ecde015c2a
Bluesky MST: start to define types, MST methods, test data
2023-04-16 16:32:47 -07:00
Ryan Barrett
1b5961f129
start on AT Protocol PDS, specifically their MST
...
largely translating this from their reference TypeScript implementation, not writing from scratch, but still hoo boy, this will take a bit of work. thank god for their test cases. very grateful for you both @dholms @devinivy!
2023-04-16 16:32:47 -07:00
dependabot[bot]
0e9d28a999
build(deps): bump packaging from 23.0 to 23.1
...
Bumps [packaging](https://github.com/pypa/packaging ) from 23.0 to 23.1.
- [Release notes](https://github.com/pypa/packaging/releases )
- [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pypa/packaging/compare/23.0...23.1 )
---
updated-dependencies:
- dependency-name: packaging
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-13 06:00:20 -07:00
Ryan Barrett
c1359d2c0a
add issue object type to snippet rendering
2023-04-12 07:57:40 -07:00
dependabot[bot]
82f414ef07
build(deps): bump beautifulsoup4 from 4.12.1 to 4.12.2
...
Bumps [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/ ) from 4.12.1 to 4.12.2.
---
updated-dependencies:
- dependency-name: beautifulsoup4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-10 05:59:29 -07:00
Ryan Barrett
65b8469f2a
/webmention : add back logging message for monitoring
2023-04-09 14:34:22 -07:00
Ryan Barrett
b7eac67443
update bluesky XRPC handlers for lexicon refactor
...
7f008c05a0
2023-04-08 12:47:29 -07:00
Ryan Barrett
23a8f7cfda
fix snippet rendering for post and profile updates
2023-04-06 12:40:36 -07:00
Ryan Barrett
ac0dc216ce
convert wm => AP to all async, enqueue task for every incoming webmention
...
fixes bug where we were fetching and storing an Object for an incoming wm, enqueueing a task, then in the task we'd refetch, see that it was unchanged, and do nothing.
thanks @jamietanna @gregorlove for reporting!
2023-04-06 09:19:05 -07:00
dependabot[bot]
8694a7fa00
build(deps): bump beautifulsoup4 from 4.12.0 to 4.12.1
...
Bumps [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/ ) from 4.12.0 to 4.12.1.
---
updated-dependencies:
- dependency-name: beautifulsoup4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 05:59:18 -07:00
Ryan Barrett
01125d38d8
/render : escape #s in object id URLs to ^^
...
fixes #469
2023-04-05 16:23:49 -07:00
Ryan Barrett
0ba43561fa
/render: hydrate author/actor if necessary
...
fixes semi-blank authors in outgoing webmentions
2023-04-05 07:16:31 -07:00
Ryan Barrett
d7f2455d69
drop a few obsolete tests
2023-04-04 22:20:49 -07:00
Ryan Barrett
0dbe18aae4
remove common.actor()
2023-04-04 22:19:35 -07:00
Ryan Barrett
22ca59749e
stop using common.actor() in User.verify()
2023-04-04 22:06:13 -07:00
Ryan Barrett
1f40aedf27
webmention.py: unify homepage update logic, move fetching into fetch()
2023-04-04 18:02:41 -07:00
Ryan Barrett
816a635738
bug fix for update profile button on user page UI
...
fixes https://console.cloud.google.com/errors/detail/CMK10__x4ZbgbQ;time=P30D?project=bridgy-federated
2023-04-04 07:24:06 -07:00
Ryan Barrett
4c9744cd65
common.error bug fix, accept exc_info kwarg
2023-04-04 07:14:31 -07:00
Ryan Barrett
629c1a2bd4
unify Object.new/changed generation into Protocol.load
...
also:
* switch back to preserving fragments in URL ids
* webmention.fetch: if URL id redirects, preserve original id in Object
2023-04-03 07:53:15 -07:00
Ryan Barrett
3a97ba587d
noop: Protocol.load: switch from @cached decorator to manual cache
...
...so that I can add a refresh kwarg that bypasses the cache
2023-04-02 20:36:23 -07:00
Ryan Barrett
f836762b0f
big webmention.py refactoring
...
* use Objects properly
* use Object's mf2/AS2/AS1 conversion
* drop resuming partially completed deliveries
* use load, fetch, send
* get closer to unifying all activity handling into Protocol.receive
2023-04-01 19:13:51 -07:00
Ryan Barrett
61a6b5bbd2
add test that activitypub.postprocess_as2 is idempotent
...
ie calling it twice results in the same output object. true almost all the time!...but not uite all yet.
2023-04-01 13:08:04 -07:00
Ryan Barrett
7bbdb47c09
temporarily vendor pre-refactor atproto and bsky lexicons into this repo
...
specifically, 7f008c05a0
is a big backward-incompatible refactor of many of these lexicons. example CI failure against the new lexicons: https://app.circleci.com/pipelines/github/snarfed/bridgy-fed/927/workflows/eadc531a-94e9-4f4a-bf6f-696940eaf531/jobs/1191
TODO: switch back to using these directly from a clone of that repo as soon as I get around to migrating
these are MIT licensed, copyright 2023 Bluesky PBLLC. https://github.com/bluesky-social/atproto/blob/main/LICENSE
2023-04-01 13:07:46 -07:00
Ryan Barrett
f4a86dcb82
update test for snarfed/granary@882426a9de
2023-03-31 20:28:25 -07:00
Ryan Barrett
c7eedcd8e5
minor docs language tweak
2023-03-31 20:28:25 -07:00