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
dependabot[bot]
4b8d2f3b2b
build(deps): bump redis from 4.5.3 to 4.5.4
...
Bumps [redis](https://github.com/redis/redis-py ) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/redis/redis-py/releases )
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES )
- [Commits](https://github.com/redis/redis-py/compare/v4.5.3...v4.5.4 )
---
updated-dependencies:
- dependency-name: redis
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 06:00:09 -07:00
Ryan Barrett
e41ce9216c
noop, rename Protocol.get_object => Protocol.load
2023-03-29 13:13:32 -07:00
Ryan Barrett
e6be9cabb8
incoming AP: when we can't load the keyId, store a deleted Object
...
prevents re-fetching the same failing keyId actor over and over when we get the same Delete actor activity sent to all of our inboxes
2023-03-29 12:51:37 -07:00
dependabot[bot]
f7d1a3fd96
build(deps): bump pytz from 2023.2 to 2023.3
...
Bumps [pytz](https://github.com/stub42/pytz ) from 2023.2 to 2023.3.
- [Release notes](https://github.com/stub42/pytz/releases )
- [Commits](https://github.com/stub42/pytz/compare/release_2023.2...release_2023.3 )
---
updated-dependencies:
- dependency-name: pytz
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-29 05:59:41 -07:00
Ryan Barrett
5493e2f297
add 'activity' to Object.labels automatically in new _pre_put_hook
2023-03-28 11:14:08 -07:00
dependabot[bot]
70317e6739
build(deps): bump grpcio from 1.51.3 to 1.53.0
...
Bumps [grpcio](https://github.com/grpc/grpc ) from 1.51.3 to 1.53.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.51.3...v1.53.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-03-28 06:04:58 -07:00
dependabot[bot]
6a0b116c9f
build(deps): bump google-cloud-tasks from 2.13.0 to 2.13.1
...
Bumps [google-cloud-tasks](https://github.com/googleapis/python-tasks ) from 2.13.0 to 2.13.1.
- [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.0...v2.13.1 )
---
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-03-28 06:00:01 -07:00
Ryan Barrett
754a6eb651
minor noop tweaks: dupe test, test name, docstring
2023-03-27 14:18:24 -07:00
Ryan Barrett
68de408789
Protocol.get_object(): store object before returning
...
also flesh out FakeProtocol
hopefully helps with https://console.cloud.google.com/errors/detail/CKCN17fmoZHraw;time=P30D?project=bridgy-federated , don't really know though
2023-03-27 14:14:37 -07:00
dependabot[bot]
aa8da08b16
build(deps): bump pytz from 2022.7.1 to 2023.2
...
Bumps [pytz](https://github.com/stub42/pytz ) from 2022.7.1 to 2023.2.
- [Release notes](https://github.com/stub42/pytz/releases )
- [Commits](https://github.com/stub42/pytz/compare/release_2022.7.1...release_2023.2 )
---
updated-dependencies:
- dependency-name: pytz
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 13:20:23 -07:00
Ryan Barrett
c3192cc1df
Webmention.fetch: add full authorship algorithm and fetch
2023-03-26 16:47:46 -07:00
Ryan Barrett
5985ac3e83
add back webob dep
...
oauth_dropins.webutil.util uses it, and we're not ready to drop that just yet
2023-03-26 09:06:25 -07:00
dependabot[bot]
ca66e482d5
build(deps): bump urllib3 from 1.26.14 to 1.26.15
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 1.26.14 to 1.26.15.
- [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/1.26.14...1.26.15 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 22:08:35 -07:00
Ryan Barrett
6dc4705a56
user page bug fix, handle AS1 inner objects with composite url values
...
fixes https://console.cloud.google.com/errors/detail/CNGc5drA4f7uOA;time=P30D?project=bridgy-federated
2023-03-23 22:04:46 -07:00
Ryan Barrett
78cef17c9a
drop webapp2, webob req'ts
2023-03-23 22:04:46 -07:00
dependabot[bot]
c1b183cf3a
build(deps): bump redis from 4.5.2 to 4.5.3
...
Bumps [redis](https://github.com/redis/redis-py ) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/redis/redis-py/releases )
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES )
- [Commits](https://github.com/redis/redis-py/compare/v4.5.2...v4.5.3 )
---
updated-dependencies:
- dependency-name: redis
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 05:59:54 -07:00
Ryan Barrett
28e8baff6c
change Protocol.fetch() to return an Object instead of populating one
2023-03-22 20:49:28 -07:00
Ryan Barrett
20f86c7de3
handle wm => AP with targets that we've already federated wm => AP
...
fixes https://console.cloud.google.com/errors/detail/CMHpr9L3ooGKeQ;time=P30D?project=bridgy-federated
2023-03-22 12:30:55 -07:00
dependabot[bot]
1a77a99e36
build(deps): bump googleapis-common-protos from 1.58.0 to 1.59.0
...
Bumps [googleapis-common-protos](https://github.com/googleapis/python-api-common-protos ) from 1.58.0 to 1.59.0.
- [Release notes](https://github.com/googleapis/python-api-common-protos/releases )
- [Changelog](https://github.com/googleapis/python-api-common-protos/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googleapis/python-api-common-protos/compare/v1.58.0...v1.59.0 )
---
updated-dependencies:
- dependency-name: googleapis-common-protos
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-22 05:59:46 -07:00
Ryan Barrett
3538940e4f
add new Object.our_as1 property for activities we create or modify ourselves
2023-03-21 09:10:14 -07:00
Ryan Barrett
acf474e2a9
standardize fetch(id, obj) args
2023-03-20 19:25:05 -07:00
Ryan Barrett
88dd51b05b
continue abstracting logic in Protocol class
...
lots more to do.
also convert Object.as1 to AS2 in ActivityPub.send if necessary.
2023-03-20 19:17:55 -07:00
Ryan Barrett
fb5f7b3fb0
move current user into Flask g request-global
2023-03-20 14:28:14 -07:00
Ryan Barrett
b2c60226b7
add Webmention.send, tweak method signature
2023-03-20 11:26:43 -07:00
dependabot[bot]
b38ac3eba7
build(deps): bump beautifulsoup4 from 4.11.2 to 4.12.0
...
Bumps [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/ ) from 4.11.2 to 4.12.0.
---
updated-dependencies:
- dependency-name: beautifulsoup4
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 06:00:19 -07:00
dependabot[bot]
c042fed692
build(deps): bump redis from 4.5.1 to 4.5.2
...
Bumps [redis](https://github.com/redis/redis-py ) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/redis/redis-py/releases )
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES )
- [Commits](https://github.com/redis/redis-py/compare/v4.5.1...v4.5.2 )
---
updated-dependencies:
- dependency-name: redis
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 05:59:51 -07:00
Ryan Barrett
7dc5a060a6
start Webmention subclass of Protocol, implement fetch
2023-03-19 21:08:24 -07:00
Ryan Barrett
bf15f4ca95
fix wm => AP reposts
...
fixes #453
2023-03-19 16:21:44 -07:00
Ryan Barrett
aeb2fd480a
tests: rename remaining test data hostnames to clarify web vs fediverse
...
followup to f6e5727602
2023-03-19 15:43:55 -07:00
Ryan Barrett
d433dd3abe
wm => AP: switch actors in outgoing activities from objects to string ids
...
mostly. also inlines single-element attributedTo lists to just the element, without the list.
2023-03-19 09:34:42 -07:00
Ryan Barrett
5169c2e44e
misc noop tweaks, mostly tests
2023-03-19 09:34:42 -07:00
Ryan Barrett
f6e5727602
test_webmention: rename test data hostnames to clarify web vs fediverse
2023-03-19 09:34:42 -07:00
Ryan Barrett
5e3c623552
add User.actor_id()
2023-03-19 09:34:42 -07:00
dependabot[bot]
ec5bd6107f
build(deps): bump google-cloud-ndb from 2.1.0 to 2.1.1
...
Bumps [google-cloud-ndb](https://github.com/googleapis/python-ndb ) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/googleapis/python-ndb/releases )
- [Changelog](https://github.com/googleapis/python-ndb/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googleapis/python-ndb/compare/v2.1.0...v2.1.1 )
---
updated-dependencies:
- dependency-name: google-cloud-ndb
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 05:59:51 -07:00
Ryan Barrett
be54842ce6
docs for hashtags
...
#45
2023-03-14 15:36:18 -07:00
Ryan Barrett
ce37dd8637
process hashtags in tab objects with Mastodon-specific logic
...
lots of background in #45 . also https://docs.joinmastodon.org/spec/activitypub/#properties-used
2023-03-14 14:59:28 -07:00
Ryan Barrett
d22cc3bdbd
docs for notifications h-feed
...
#442
2023-03-14 11:33:11 -07:00
Ryan Barrett
d8932d4e76
add mf2 to user page dashboard to make a notifications feed
...
for #442
2023-03-14 11:27:10 -07:00
dependabot[bot]
95f0b59cbe
build(deps): bump testtools from 2.5.0 to 2.6.0
...
Bumps [testtools](https://github.com/testing-cabal/testtools ) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/testing-cabal/testtools/releases )
- [Changelog](https://github.com/testing-cabal/testtools/blob/master/NEWS )
- [Commits](https://github.com/testing-cabal/testtools/compare/2.5.0...2.6.0 )
---
updated-dependencies:
- dependency-name: testtools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 06:00:19 -07:00