Ryan Barrett
174c55ae6e
merging receive: implement mentions, deliver to mentioned users
...
for #529
2023-07-11 13:25:31 -07:00
Ryan Barrett
605742a82c
merging receive: skip same-domain targets
...
for #529
2023-07-11 13:25:31 -07:00
Ryan Barrett
42bb4a765d
misc test fixes
2023-07-11 13:25:31 -07:00
Ryan Barrett
15557dc78f
merging receive: Web: handle ValueError raised by protocol.receive
...
for #529
2023-07-11 13:25:31 -07:00
Ryan Barrett
0d7df6d4e6
merging receive: handle follow with multiple objects (followees)
...
for #529
2023-07-11 13:25:31 -07:00
Ryan Barrett
cfa43135a5
Web.fetch default author bug fix, only add if URL is not homepage
2023-07-11 13:25:31 -07:00
Ryan Barrett
a2ed0afda8
merging receive: Web.fetch: default actor/author to home page URL
...
for #529
2023-07-11 13:25:31 -07:00
Ryan Barrett
ceb72e516c
Web.send: ignore accept activities
...
webmention/mf2 have no corrolary yet
2023-07-11 13:25:31 -07:00
Ryan Barrett
e20ef91afe
uncomment remaining test_protocol receive tests so I don't forget them
2023-07-11 13:25:31 -07:00
Ryan Barrett
89ff89ef30
merging receive: Object.as1: postprocess mf2, if no id, use url
...
for #529
2023-07-11 13:25:31 -07:00
Ryan Barrett
911dc56367
merging receive: check for already seen activity ids more carefully
...
for #529
2023-07-11 13:25:30 -07:00
Ryan Barrett
2c861dbbf4
merging receive: if incoming object has no id (eg web/mf2), default to URL
...
for #529
2023-07-11 13:25:30 -07:00
Ryan Barrett
56ebdba049
merging receive: propagate new/changed from receive into new Object
...
for #529
2023-07-11 13:25:30 -07:00
Ryan Barrett
79dd28eeb3
merging receive: Object.users bug fix, fix most test_activitypub tests
...
for #529
2023-07-11 13:25:30 -07:00
Ryan Barrett
9c62786f06
merging receive: delivery bug fix, stop suppressing webmention send errors
...
for #529
2023-07-11 13:25:30 -07:00
Ryan Barrett
5f4d6757e7
merging Protocol/Web receive: minor fix for extracting activity id
...
for #529
2023-07-11 13:25:30 -07:00
Ryan Barrett
568681a19e
merging Protocol/Web receive: start to work through test_web
...
for #529
2023-07-11 13:25:30 -07:00
Ryan Barrett
ab24b8680f
start using Protocol.owner_key
2023-07-11 13:25:30 -07:00
Ryan Barrett
3333509f5b
add Protocol.owner_key
2023-07-11 13:25:30 -07:00
Ryan Barrett
79c1f71a58
merging Protocol/Web receive: use actor for deletes, not g.user
...
for #529
2023-07-11 13:25:30 -07:00
Ryan Barrett
26a63e116b
merging Protocol/Web receive: test_send_error
...
for #529
2023-07-11 13:25:29 -07:00
Ryan Barrett
903f26bb0a
merging Protocol/Web receive: reposts, deletes
...
for #529
2023-07-11 13:25:29 -07:00
Ryan Barrett
b3a3de73f2
extend Web/ActivityPub.owns_id() to return False if blocklisted
2023-07-11 13:25:29 -07:00
Ryan Barrett
2ea78a894b
merging Protocol/Web receive: tests for repost, update reply
...
for #529
2023-07-11 13:25:29 -07:00
Ryan Barrett
ee3a596dbb
Summary merging Protocol/Web receive: change receive to take Object
...
for #529
2023-07-11 13:25:29 -07:00
Ryan Barrett
3f9ee02126
Object.get_or_create: populate .new and .changed
2023-07-11 13:25:29 -07:00
Ryan Barrett
3ceeae418f
add Object.activity_changed
2023-07-11 13:25:29 -07:00
Ryan Barrett
80e63e0fe9
add Object.get_or_create
2023-07-11 13:25:29 -07:00
Ryan Barrett
6157f3f3b5
merging Protocol/Web receive: improve logic for bare objects
...
for #529
2023-07-11 13:25:29 -07:00
Ryan Barrett
4f8bcf9606
merging Protocol/Web receive: move _deliver, _targets from Web to Protocol
...
for #529
2023-07-11 13:25:29 -07:00
Ryan Barrett
ee4da3561c
merging Protocol/Web receive: tweak error handling, de-dupe target URLs
...
for #529
2023-07-11 13:25:28 -07:00
Ryan Barrett
d0d6a13044
merging Protocol/Web receive: tweaks to Object.users, Object.labels
...
for #529
2023-07-11 13:25:28 -07:00
Ryan Barrett
83f069ac0f
merging Protocol/Web receive: more follow tests
...
for #529
2023-07-11 13:25:28 -07:00
Ryan Barrett
ecbc76dd94
minor, use common.add a few more places
2023-07-11 13:25:28 -07:00
Ryan Barrett
aeeea5590d
merging Protocol/Web receive: handle bare reply objects
...
for #529
2023-07-11 13:25:28 -07:00
Ryan Barrett
54881ea707
lots more on merging Protocol/Web receive and deliver
...
for #529
2023-07-11 13:25:28 -07:00
Ryan Barrett
08d8c163e5
prune down logging of object writes
2023-07-11 13:25:28 -07:00
Ryan Barrett
f254dea004
merge Protocol.receive: follow tweaks, like test
...
for #529
2023-07-11 13:25:28 -07:00
Ryan Barrett
be7aa50eac
start merging web.webmention_task into Protocol.receive
...
for #529
2023-07-11 13:25:28 -07:00
dependabot[bot]
9b1e396aa5
build(deps): bump charset-normalizer from 3.1.0 to 3.2.0
...
Bumps [charset-normalizer](https://github.com/Ousret/charset_normalizer ) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/Ousret/charset_normalizer/releases )
- [Changelog](https://github.com/Ousret/charset_normalizer/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Ousret/charset_normalizer/compare/3.1.0...3.2.0 )
---
updated-dependencies:
- dependency-name: charset-normalizer
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 05:30:35 -07:00
dependabot[bot]
c1eb2a9981
build(deps): bump click from 8.1.3 to 8.1.4
...
Bumps [click](https://github.com/pallets/click ) from 8.1.3 to 8.1.4.
- [Release notes](https://github.com/pallets/click/releases )
- [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/click/compare/8.1.3...8.1.4 )
---
updated-dependencies:
- dependency-name: click
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-07 06:02:20 -07:00
Ryan Barrett
1d58518edf
add test for post with multiple types
...
for https://console.cloud.google.com/errors/detail/CNCkorXE2bzlVg;time=P30D?project=bridgy-federated , fixed by snarfed/granary@2c5107d0bf
2023-07-06 07:38:25 -07:00
dependabot[bot]
71d055edcf
build(deps): bump google-cloud-appengine-logging from 1.3.0 to 1.3.1
...
Bumps [google-cloud-appengine-logging](https://github.com/googleapis/google-cloud-python ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/googleapis/google-cloud-python/releases )
- [Changelog](https://github.com/googleapis/google-cloud-python/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googleapis/google-cloud-python/compare/google-cloud-appengine-logging-v1.3.0...google-cloud-appengine-logging-v1.3.1 )
---
updated-dependencies:
- dependency-name: google-cloud-appengine-logging
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 05:56:48 -07:00
dependabot[bot]
63d1a5b2bf
build(deps): bump jsonschema from 4.17.3 to 4.18.0
...
Bumps [jsonschema](https://github.com/python-jsonschema/jsonschema ) from 4.17.3 to 4.18.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.17.3...v4.18.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-07-06 05:52:10 -07:00
dependabot[bot]
e7b2d6c81c
build(deps): bump google-cloud-error-reporting from 1.9.1 to 1.9.2
...
Bumps [google-cloud-error-reporting](https://github.com/googleapis/python-error-reporting ) from 1.9.1 to 1.9.2.
- [Release notes](https://github.com/googleapis/python-error-reporting/releases )
- [Changelog](https://github.com/googleapis/python-error-reporting/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googleapis/python-error-reporting/compare/v1.9.1...v1.9.2 )
---
updated-dependencies:
- dependency-name: google-cloud-error-reporting
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 05:51:59 -07:00
dependabot[bot]
f81b72e213
build(deps): bump google-cloud-tasks from 2.13.1 to 2.13.2
...
Bumps [google-cloud-tasks](https://github.com/googleapis/python-tasks ) from 2.13.1 to 2.13.2.
- [Release notes](https://github.com/googleapis/python-tasks/releases )
- [Changelog](https://github.com/googleapis/python-tasks/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googleapis/python-tasks/compare/v2.13.1...v2.13.2 )
---
updated-dependencies:
- dependency-name: google-cloud-tasks
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 05:51:45 -07:00
dependabot[bot]
4e5463ccdc
build(deps): bump lxml from 4.9.2 to 4.9.3
...
Bumps [lxml](https://github.com/lxml/lxml ) from 4.9.2 to 4.9.3.
- [Release notes](https://github.com/lxml/lxml/releases )
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt )
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.9.2...lxml-4.9.3 )
---
updated-dependencies:
- dependency-name: lxml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 05:31:36 -07:00
Ryan Barrett
33f3d856da
docs: first pass at documenting activity router
2023-07-03 07:37:16 -07:00
Ryan Barrett
0caca9243e
add common.add to add to repeated properties only if not already there
...
tried a bunch of other more sophisticated ways to do this in snarfed/webutil@280a93e092 (plus snarfed/webutil@6cb9c1f719 ), tried a custom repeated property class that acted like a set instead of a list, but couldn't get it to work reliably or compatibly enough.
2023-06-29 22:15:07 -07:00
Ryan Barrett
ee52a7b1c6
User.load_multi bug fix: handle when obj_key points to nonexistent entity
...
fixes https://console.cloud.google.com/errors/detail/COGUnu_nvbzluwE;time=P30D?project=bridgy-federated
2023-06-29 13:47:16 -07:00