Ryan Barrett
579f55d965
AP: add paging to outbox
...
finishes / fixes #383
2023-11-23 22:35:38 -08:00
Ryan Barrett
db2668ffab
activitypub.postprocess_as2_actor: handle user without handle
...
fixes https://console.cloud.google.com/errors/detail/CIT9-r3d-MKW5AE;time=P30D?project=bridgy-federated
2023-11-23 22:09:11 -08:00
Ryan Barrett
dcd7081d48
activitypub.actor: remove redundant preferredUsername
...
no clue why this triggered these flaky test failures, they happened when I ran all tests, but not test_pages on its own. grr.
2023-11-23 22:09:11 -08:00
Ryan Barrett
f27e914a89
User.handle_as: handle when handle isn't set
...
for https://console.cloud.google.com/errors/detail/CIT9-r3d-MKW5AE;time=P30D?project=bridgy-federated
2023-11-23 22:09:05 -08:00
Ryan Barrett
22b80e4eaf
bug fix for e5abdc0: set g.user before activitypub.postprocess_as2
...
for #383
2023-11-23 07:57:39 -08:00
Ryan Barrett
e5abdc097f
implement outbox
...
only first page. for #383
2023-11-22 21:40:36 -08:00
Ryan Barrett
f8b7d0c283
move pages.fetch_objects to models
2023-11-22 20:39:21 -08:00
Ryan Barrett
48f89cebc0
User.handle_as: handle web users with custom usernames
...
bug fix for b255962
, fixes https://console.cloud.google.com/errors/detail/CPiAj72alvDYNQ;time=P30D?project=bridgy-federated
2023-11-22 19:00:02 -08:00
Ryan Barrett
f6af56f1c4
test_activitypub: use our_as1 for test web user, not as2
2023-11-22 17:59:18 -08:00
Ryan Barrett
b255962fde
activitypub: genericize preferredUsername across protocols
2023-11-22 17:24:08 -08:00
dependabot[bot]
874534c159
build(deps): bump humanize from 4.8.0 to 4.9.0
...
Bumps [humanize](https://github.com/python-humanize/humanize ) from 4.8.0 to 4.9.0.
- [Release notes](https://github.com/python-humanize/humanize/releases )
- [Commits](https://github.com/python-humanize/humanize/compare/4.8.0...4.9.0 )
---
updated-dependencies:
- dependency-name: humanize
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22 04:41:47 -08:00
dependabot[bot]
b6184462af
build(deps): bump pyasn1 from 0.5.0 to 0.5.1
...
Bumps [pyasn1](https://github.com/pyasn1/pyasn1 ) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/pyasn1/pyasn1/releases )
- [Changelog](https://github.com/pyasn1/pyasn1/blob/main/CHANGES.rst )
- [Commits](https://github.com/pyasn1/pyasn1/compare/v0.5.0...v0.5.1 )
---
updated-dependencies:
- dependency-name: pyasn1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-21 04:20:02 -08:00
Ryan Barrett
9b67d5273f
remove g.user in a few more places in activitypub
...
for #690
2023-11-20 16:21:20 -08:00
Ryan Barrett
dbfc240985
UI bug fix for 8b3881df
...
for #690 , fixes https://console.cloud.google.com/errors/CMSlxaaflMHNSQ?project=bridgy-federated&time=P30D&
2023-11-20 16:21:20 -08:00
dependabot[bot]
b71d937381
build(deps): bump grpcio-status from 1.59.2 to 1.59.3
...
Bumps [grpcio-status](https://grpc.io ) from 1.59.2 to 1.59.3.
---
updated-dependencies:
- dependency-name: grpcio-status
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-20 04:33:11 -08:00
dependabot[bot]
28a3776bf3
build(deps): bump grpcio from 1.59.2 to 1.59.3
...
Bumps [grpcio](https://github.com/grpc/grpc ) from 1.59.2 to 1.59.3.
- [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.59.2...v1.59.3 )
---
updated-dependencies:
- dependency-name: grpcio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-20 04:27:55 -08:00
dependabot[bot]
2db6f77c03
build(deps): bump certifi from 2023.7.22 to 2023.11.17
...
Bumps [certifi](https://github.com/certifi/python-certifi ) from 2023.7.22 to 2023.11.17.
- [Commits](https://github.com/certifi/python-certifi/compare/2023.07.22...2023.11.17 )
---
updated-dependencies:
- dependency-name: certifi
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-20 04:27:28 -08:00
Ryan Barrett
c593a80ee9
fix test_integrations for g.user minimizing in #690
2023-11-19 21:53:39 -08:00
Ryan Barrett
eb7da31873
minimize g.user in activitypub.actor
...
for #690
2023-11-19 21:53:39 -08:00
Ryan Barrett
2c6a470058
drop g.user in lots of tests
...
for #690
2023-11-19 21:53:39 -08:00
Ryan Barrett
990ec47c89
stop using g.user in web, part of redirect
...
for #690
2023-11-19 21:53:39 -08:00
Ryan Barrett
fefcbbb77e
drop Protocol.actor_key's default_g_user kwarg
...
for #690
2023-11-19 21:53:38 -08:00
Ryan Barrett
8b3881dfe3
stop using g.user in pages, activitypub followers/ing collections
...
for #690
2023-11-19 21:53:38 -08:00
Ryan Barrett
a1a7ceef51
stop using g.user in Follower.fetch_page
...
for #690
2023-11-19 21:53:38 -08:00
Ryan Barrett
29158e02e9
start removing g.user. first, a couple easy ones, webfinger and follow
...
for #690
2023-11-19 21:53:38 -08:00
dependabot[bot]
afcb5b51dd
build(deps): bump jsonschema from 4.19.2 to 4.20.0
...
Bumps [jsonschema](https://github.com/python-jsonschema/jsonschema ) from 4.19.2 to 4.20.0.
- [Release notes](https://github.com/python-jsonschema/jsonschema/releases )
- [Changelog](https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/python-jsonschema/jsonschema/compare/v4.19.2...v4.20.0 )
---
updated-dependencies:
- dependency-name: jsonschema
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-17 04:59:04 -08:00
Ryan Barrett
bee313fb67
drop User.atproto_did, switch to using copies
2023-11-15 19:08:06 -08:00
Ryan Barrett
4d095fa3d9
misc cleanup
...
* remove obsolete TODOs, commented out code
* remove obsolete circular imports of per-protocol modules
* minimize Object put in Protocol.load
* remove duplicated Protocol.load tests in test_activitypub
* re-enable rest of ActivityPubUtilsTest.test_postprocess_as2_idempotent
* drop default cls=Web in TestCase.make_user
2023-11-15 14:23:08 -08:00
Ryan Barrett
4c61770017
activitypub: drop circular import of web
...
for #486
2023-11-15 13:33:39 -08:00
Ryan Barrett
59c6d44f6d
AP: stop using PROTOCOLS in inbox URL routes
...
for #486
2023-11-15 13:33:39 -08:00
Ryan Barrett
507cb19c32
test_integrations: import test_web instead of WebTest to avoid duplicating
...
before this, unittest thought the imported WebTest was a new test class and ran it again.
2023-11-15 12:40:59 -08:00
Ryan Barrett
5d1aadb869
ATProto.send: use type as collection, convert to record early to catch errors
2023-11-14 19:55:20 -08:00
Ryan Barrett
d237d9611c
atproto: store extra `cid` field in Object.bsky, populate in record strongRefs
2023-11-14 19:24:37 -08:00
Ryan Barrett
95631396b7
atproto: fill in createdAt
...
for snarfed/granary@a0795b8c34
2023-11-14 15:24:51 -08:00
Ryan Barrett
81838df113
atproto.poll_posts: store record, not #postView
2023-11-14 14:21:22 -08:00
Ryan Barrett
72b3af9fe3
hub dispatch: route /queue/atproto-poll-posts
2023-11-14 14:07:56 -08:00
Ryan Barrett
a5b5078729
ATProto: first pass at polling posts (timelines)
...
for #694
2023-11-14 12:30:14 -08:00
Ryan Barrett
9c5adab4f4
ATProto.send: support likes, reposts, follows
...
snarfed/bridgy-fed#717
2023-11-14 10:56:52 -08:00
Ryan Barrett
85ae5bc675
ignore inReplyTo when checking if an object has changed
...
snarfed/granary@3c782f9dac , snarfed/granary@308a2d56f9 , snarfed/granary@95fae94bf8 , snarfed/bridgy#933 , snarfed/bridgy#941
2023-11-14 06:49:57 -08:00
Ryan Barrett
2d4e4afbaa
stop logging headers during sig verification
2023-11-13 21:01:38 -08:00
Ryan Barrett
ac6f98f54c
integration test for #720
...
BF's first integration test! hopefully more to come, eg snarfed/bridgy-fed#689
actual fix is in snarfed/granary@3c782f9
2023-11-13 14:37:16 -08:00
Ryan Barrett
cbbea104fc
cache Protocol.for_id
...
fixes #727
2023-11-13 14:18:32 -08:00
Ryan Barrett
91c25f6955
testutil noop, TestCase.make_user: include source_protocol in profile Object
2023-11-13 14:08:21 -08:00
Ryan Barrett
00fb4dd14d
move test_atproto.KEY to testutil.ATPROTO_KEY
2023-11-13 14:08:21 -08:00
Ryan Barrett
12158eba64
Protocol.targets bug fix, handle composite inReplyTo
2023-11-13 14:08:21 -08:00
dependabot[bot]
25d778cf60
build(deps): bump urllib3 from 2.0.7 to 2.1.0
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 2.0.7 to 2.1.0.
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/2.0.7...2.1.0 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 04:51:39 -08:00
Ryan Barrett
0364ece4a8
stop resolving ids in Protocol.targets, since Protocol.receive already did it
2023-11-12 13:21:35 -08:00
Ryan Barrett
3d0c5ecea5
Object.resolve_ids: handle multiple inReplyTo
2023-11-12 13:15:08 -08:00
Ryan Barrett
a08a76c672
Object.resolve_ids bug fix: handle both protocol LABEL and ABBREV
2023-11-12 10:33:08 -08:00
Ryan Barrett
91a0a43665
noop docstring comment in User.status
2023-11-12 07:49:13 -08:00