Wykres commitów

1329 Commity (merge-web-protocol-receive)

Autor SHA1 Wiadomość Data
Ryan Barrett 67c4dacedf
merging receive: bug fix for same domain check: normalize target URLs earlier
for #529, a3f99a81ce
2023-07-11 13:22:56 -07:00
Ryan Barrett d4d5bff81b
drop AP tests for mentions, they're already tested in test_protocol 2023-07-10 16:20:26 -07:00
Ryan Barrett 7fc83284f7
merging receive: implement mentions, deliver to mentioned users
for #529
2023-07-10 15:53:32 -07:00
Ryan Barrett a3f99a81ce
merging receive: skip same-domain targets
for #529
2023-07-10 14:58:45 -07:00
Ryan Barrett e60047de6c
misc test fixes 2023-07-10 12:23:00 -07:00
Ryan Barrett 5abc586749
merging receive: Web: handle ValueError raised by protocol.receive
for #529
2023-07-10 12:11:29 -07:00
Ryan Barrett 9211b74269
merging receive: handle follow with multiple objects (followees)
for #529
2023-07-10 12:00:42 -07:00
Ryan Barrett b8c4a99bb2
Web.fetch default author bug fix, only add if URL is not homepage 2023-07-10 11:37:40 -07:00
Ryan Barrett cecdb7cca0
merging receive: Web.fetch: default actor/author to home page URL
for #529
2023-07-10 11:26:09 -07:00
Ryan Barrett 701388f008
Web.send: ignore accept activities
webmention/mf2 have no corrolary yet
2023-07-10 10:14:12 -07:00
Ryan Barrett f5bb8a886a
uncomment remaining test_protocol receive tests so I don't forget them 2023-07-09 18:19:59 -07:00
Ryan Barrett ad6387fea2
merging receive: Object.as1: postprocess mf2, if no id, use url
for #529
2023-07-09 16:31:11 -07:00
Ryan Barrett 9c9f30113d
merging receive: check for already seen activity ids more carefully
for #529
2023-07-09 08:28:47 -07:00
Ryan Barrett 3049615aa6
merging receive: if incoming object has no id (eg web/mf2), default to URL
for #529
2023-07-09 07:53:33 -07:00
Ryan Barrett c5730b0bf5
merging receive: propagate new/changed from receive into new Object
for #529
2023-07-08 19:21:13 -07:00
Ryan Barrett 4024bbcbcb
merging receive: Object.users bug fix, fix most test_activitypub tests
for #529
2023-07-07 21:50:43 -07:00
Ryan Barrett 6223e22da8
merging receive: delivery bug fix, stop suppressing webmention send errors
for #529
2023-07-06 21:18:18 -07:00
Ryan Barrett 832a19c7b4
merging Protocol/Web receive: minor fix for extracting activity id
for #529
2023-07-06 12:38:51 -07:00
Ryan Barrett 303434a8c0
merging Protocol/Web receive: start to work through test_web
for #529
2023-07-06 09:31:06 -07:00
Ryan Barrett de8c4faed3
start using Protocol.owner_key 2023-07-06 09:31:06 -07:00
Ryan Barrett 198c55e9db
add Protocol.owner_key 2023-07-06 09:31:06 -07:00
Ryan Barrett 20c8238247
merging Protocol/Web receive: use actor for deletes, not g.user
for #529
2023-07-06 09:31:06 -07:00
Ryan Barrett 4410b37478
merging Protocol/Web receive: test_send_error
for #529
2023-07-06 09:31:06 -07:00
Ryan Barrett a2efdccf37
merging Protocol/Web receive: reposts, deletes
for #529
2023-07-06 09:31:06 -07:00
Ryan Barrett 111df31736
extend Web/ActivityPub.owns_id() to return False if blocklisted 2023-07-06 09:31:06 -07:00
Ryan Barrett ff0bf70090
merging Protocol/Web receive: tests for repost, update reply
for #529
2023-07-06 09:31:06 -07:00
Ryan Barrett 27dc261923
Summary merging Protocol/Web receive: change receive to take Object
for #529
2023-07-06 09:31:06 -07:00
Ryan Barrett da8c1aa0c8
Object.get_or_create: populate .new and .changed 2023-07-06 09:31:05 -07:00
Ryan Barrett b481698409
add Object.activity_changed 2023-07-06 09:31:05 -07:00
Ryan Barrett 3eb304b82e
add Object.get_or_create 2023-07-06 09:31:05 -07:00
Ryan Barrett 570ec463bb
merging Protocol/Web receive: improve logic for bare objects
for #529
2023-07-06 09:31:05 -07:00
Ryan Barrett a689285c3e
merging Protocol/Web receive: move _deliver, _targets from Web to Protocol
for #529
2023-07-06 09:31:05 -07:00
Ryan Barrett 5193a5da1a
merging Protocol/Web receive: tweak error handling, de-dupe target URLs
for #529
2023-07-06 09:31:05 -07:00
Ryan Barrett f34c2f9a28
merging Protocol/Web receive: tweaks to Object.users, Object.labels
for #529
2023-07-06 09:31:05 -07:00
Ryan Barrett 142808eaaf
merging Protocol/Web receive: more follow tests
for #529
2023-07-06 09:31:05 -07:00
Ryan Barrett 05e755ed06
minor, use common.add a few more places 2023-07-06 09:31:05 -07:00
Ryan Barrett 407b28b749
merging Protocol/Web receive: handle bare reply objects
for #529
2023-07-06 09:31:05 -07:00
Ryan Barrett f10eeca219
lots more on merging Protocol/Web receive and deliver
for #529
2023-07-06 09:31:04 -07:00
Ryan Barrett cd4e2aa490
prune down logging of object writes 2023-07-06 09:31:04 -07:00
Ryan Barrett 679f1bff40
merge Protocol.receive: follow tweaks, like test
for #529
2023-07-06 09:31:04 -07:00
Ryan Barrett f1d217c1b0
start merging web.webmention_task into Protocol.receive
for #529
2023-07-06 09:31:04 -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