Wykres commitów

1914 Commity (49eb9b8541c68c2ce20531254d7c8ff91243635f)

Autor SHA1 Wiadomość Data
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
Ryan Barrett 6498c24d98
AP sig verification bug fix: support lower case sha-256= Digest prefix
found with https://verify.funfedi.dev/?actor_uri=https%3A%2F%2Ffed.brid.gy%2Fsnarfed.org . thanks @HelgeKrueger!
2023-11-12 07:48:48 -08:00
Ryan Barrett 2a7c0adf0f
bug fixes for suppressing mentions of in-reply-to-authors
for 84324c0c0b, #686
2023-11-11 14:52:21 -08:00
Ryan Barrett 3975c143d7
fix atproto tests for arroba TID bug fixes in c8e6b30, 7170bf7 2023-11-11 10:38:48 -08:00
Ryan Barrett 84324c0c0b
Protocol.targets: suppress mentions of in-reply-to authors
fixes #686
2023-11-10 14:39:40 -08:00
dependabot[bot] 42eb6b1d8b build(deps): bump google-cloud-dns from 0.34.1 to 0.34.2
Bumps [google-cloud-dns](https://github.com/googleapis/python-dns) from 0.34.1 to 0.34.2.
- [Release notes](https://github.com/googleapis/python-dns/releases)
- [Changelog](https://github.com/googleapis/python-dns/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/python-dns/compare/v0.34.1...v0.34.2)

---
updated-dependencies:
- dependency-name: google-cloud-dns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-10 04:26:18 -08:00
dependabot[bot] 9bc3711ef3 build(deps): bump grpc-google-iam-v1 from 0.12.6 to 0.12.7
Bumps [grpc-google-iam-v1](https://github.com/googleapis/python-grpc-google-iam-v1) from 0.12.6 to 0.12.7.
- [Release notes](https://github.com/googleapis/python-grpc-google-iam-v1/releases)
- [Changelog](https://github.com/googleapis/python-grpc-google-iam-v1/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/python-grpc-google-iam-v1/compare/v0.12.6...v0.12.7)

---
updated-dependencies:
- dependency-name: grpc-google-iam-v1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-10 04:25:50 -08:00
Ryan Barrett 535494f21b
Object.to_as1 from bsky: pass at:// uri so we get id/url more often
for #715
2023-11-09 20:50:48 -08:00
Ryan Barrett 2be1229488
ATProto.send: store copy id in base object 2023-11-09 14:09:45 -08:00
Ryan Barrett 772c714c79
add CC0 license 2023-11-09 14:09:44 -08:00
dependabot[bot] 9bac33b9f2 build(deps): bump wrapt from 1.15.0 to 1.16.0
Bumps [wrapt](https://github.com/GrahamDumpleton/wrapt) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/GrahamDumpleton/wrapt/releases)
- [Changelog](https://github.com/GrahamDumpleton/wrapt/blob/develop/docs/changes.rst)
- [Commits](https://github.com/GrahamDumpleton/wrapt/compare/1.15.0...1.16.0)

---
updated-dependencies:
- dependency-name: wrapt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-09 04:32:24 -08:00
Ryan Barrett f97b837960
cache follower/following counts for 2h 2023-11-08 12:03:56 -08:00
Ryan Barrett d576d2b2e4
move pages.count_followers to User, use it in activitypub.actor 2023-11-08 11:56:01 -08:00
Ryan Barrett 242a4a3ad3
fix activitypub actor tests for ae2cb2825b 2023-11-08 11:53:32 -08:00
Ryan Barrett bd841b50b9
user page: only show Feed tab for web users 2023-11-08 11:35:26 -08:00
Ryan Barrett ae2cb2825b
activitypub.postprocess_as2: use real AP actor id in key id 2023-11-08 11:28:17 -08:00
Ryan Barrett e801d52ed7
Protocol: add force= to /queue/send, allow unknown params in /queue/receive 2023-11-08 11:28:17 -08:00
Ryan Barrett d2dee8752f
/convert/: if dest protocol is AP, don't assume source protocol is Web 2023-11-08 11:28:17 -08:00
Ryan Barrett 9327565095
/convert/: drop req't that ids are web URLs
for abstracting across protocols. also other minor tweaks.
2023-11-08 11:28:17 -08:00
Ryan Barrett 4b7926b3a8
/convert/: drop protocol regexps in URL path routes 2023-11-08 11:28:17 -08:00
dependabot[bot] e187fe695c build(deps): bump pbr from 5.11.1 to 6.0.0
Bumps [pbr](https://docs.openstack.org/pbr/latest/) from 5.11.1 to 6.0.0.

---
updated-dependencies:
- dependency-name: pbr
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-08 05:11:51 -08:00
Ryan Barrett bca034c4f8
ids: use subdomain-wrapped URLs to convert ATProto to Web/AP 2023-11-06 20:17:23 -08:00
Ryan Barrett 98bb29b333
drop Object.proxy_url, switch callers to ids.translate_object_id 2023-11-06 12:18:11 -08:00
Ryan Barrett 06275324fd
Web.convert: call translate_ids 2023-11-03 15:52:37 -07:00
Ryan Barrett aa5c6a396e
ActivityPub: translate ids in convert 2023-11-03 15:11:21 -07:00
Ryan Barrett fdc5b8e1e9
Protocol.translate_ids bug fix: handle create/update user profile activities 2023-11-03 15:10:05 -07:00
Ryan Barrett cada99e407
ids.translate_user_id: follow use_instead 2023-11-03 14:53:19 -07:00