dependabot[bot]
8bbcf2d6bd
build(deps): bump grpcio-status from 1.59.0 to 1.59.2
...
Bumps [grpcio-status](https://grpc.io ) from 1.59.0 to 1.59.2.
---
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-10-31 06:00:52 -07:00
dependabot[bot]
6d41031607
build(deps): bump grpcio from 1.59.0 to 1.59.2
...
Bumps [grpcio](https://github.com/grpc/grpc ) from 1.59.0 to 1.59.2.
- [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.0...v1.59.2 )
---
updated-dependencies:
- dependency-name: grpcio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-31 05:55:56 -07:00
dependabot[bot]
df4a8bd000
build(deps): bump jsonschema from 4.19.1 to 4.19.2
...
Bumps [jsonschema](https://github.com/python-jsonschema/jsonschema ) from 4.19.1 to 4.19.2.
- [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.1...v4.19.2 )
---
updated-dependencies:
- dependency-name: jsonschema
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-31 05:55:21 -07:00
Ryan Barrett
06329d634c
docs: update Bluesky IETF post to use bnewbold's DID
2023-10-29 16:19:27 -07:00
Tantek Çelik
c7ec9398e9
hidden attr for BF links
...
Use hidden attribute for empty links to fed.brid.gy to avoid having them pollute screen readers and keyboard navigation users
2023-10-29 16:05:42 -07:00
Ryan Barrett
672949e217
fix atproto lexrpc client test for new access token handling
...
for snarfed/lexrpc@98b61eb383
2023-10-29 11:55:37 -07:00
Ryan Barrett
b7e890b4bb
heuristic: assume no AP actor id is the root path on its host
...
this lets us assume home pages are Web users without making any network requests
2023-10-26 17:58:10 -07:00
Ryan Barrett
c280a3f213
switch Protocol.translate_ids from using subdomain_wrap to translate_object_id
2023-10-26 17:18:01 -07:00
Ryan Barrett
8e4e95914d
test_ids: remove unnecessary test for translate_object_id
2023-10-26 17:03:14 -07:00
Ryan Barrett
dc82fd02e1
TestCase.as2_req: support POSTs with data kwarg
2023-10-26 16:56:30 -07:00
Ryan Barrett
87edfd69d5
noop: common: move flask_app import to local (it's for running tasks inline)
2023-10-26 16:55:01 -07:00
Ryan Barrett
c5959e00f4
add ids.translate_object_id
2023-10-26 16:20:30 -07:00
Ryan Barrett
cfbfba654e
move User.get_for_copy/ies to module level, add Object results
2023-10-26 16:00:03 -07:00
Ryan Barrett
5843235fd1
rename ids.convert_id => translate_user_id, convert_handle => translate_handle
2023-10-26 13:53:31 -07:00
Ryan Barrett
f74be7b0e5
add Protocol.convert_wrap
2023-10-26 13:53:31 -07:00
Ryan Barrett
43424259a5
noop: use as2.PUBLIC_AUDIENCE more in test_activitypub
2023-10-26 13:53:31 -07:00
Ryan Barrett
e214e4986b
activitypub.postprocess_as2: remove redundant wrap for Deletes
2023-10-26 13:53:31 -07:00
dependabot[bot]
ea08bd9153
build(deps): bump pyrsistent from 0.19.3 to 0.20.0
...
Bumps [pyrsistent](https://github.com/tobgu/pyrsistent ) from 0.19.3 to 0.20.0.
- [Changelog](https://github.com/tobgu/pyrsistent/blob/master/CHANGES.txt )
- [Commits](https://github.com/tobgu/pyrsistent/compare/v0.19.3...v0.20.0 )
---
updated-dependencies:
- dependency-name: pyrsistent
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-26 05:34:41 -07:00
Ryan Barrett
ca8b7484c0
drop User.as2, Object.as_as2, switch callers to Protocol.convert
2023-10-25 13:28:01 -07:00
Ryan Barrett
3471476092
Revert "Protocol.receive: bump up threads from 10 to 30"
...
Seemed to make things worse, not better. Guess I need to implement continuation passing across task handler requests. #652
This reverts commit 66da2efc7a
.
2023-10-25 12:31:52 -07:00
Ryan Barrett
e833eb04dc
Object.resolve_ids: compact output objects with just id to bare string ids
2023-10-25 12:31:52 -07:00
Ryan Barrett
acb1c703a3
rename Protocol.serve => .convert, move Content-Type to class constant
2023-10-25 12:31:52 -07:00
dependabot[bot]
c3c3c17c9d
build(deps): bump cryptography from 41.0.4 to 41.0.5
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 41.0.4 to 41.0.5.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/41.0.4...41.0.5 )
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 06:02:09 -07:00
dependabot[bot]
93c67ba7bb
build(deps): bump werkzeug from 3.0.0 to 3.0.1
...
Bumps [werkzeug](https://github.com/pallets/werkzeug ) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/pallets/werkzeug/releases )
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.0...3.0.1 )
---
updated-dependencies:
- dependency-name: werkzeug
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-25 06:02:01 -07:00
Ryan Barrett
6a867ca2c4
update for granary.as2's new PropertyValue attachment handling
...
snarfed/granary@20d6c3f065
2023-10-24 16:02:16 -07:00
Ryan Barrett
5a07e154ef
use subdomain_wrap in ids.convert
2023-10-24 15:58:03 -07:00
Ryan Barrett
023ffd0b7a
docs: cut the supported apps section way down, link to GH issues search
2023-10-24 13:15:56 -07:00
Ryan Barrett
611bc94fc2
Object.as1 from bluesky: granary now sets actor/author
...
in snarfed/granary@eceb700c6c
2023-10-24 12:36:13 -07:00
Ryan Barrett
422a240183
Resolve protocol-subdomain-wrapped ids/URLs by stripping the subdomain wrapping
...
Renames Object.replace_copies_with_originals => resolve_ids. As a side effect, also fixes https://console.cloud.google.com/errors/detail/CK3U3PONxv5Q;time=P30D?project=bridgy-federated
2023-10-24 10:47:44 -07:00
Ryan Barrett
d12fd99b03
noop: move Protocol.subdomain_url to common.subdomain_wrap
2023-10-23 15:44:32 -07:00
Ryan Barrett
9a87d7261f
fix crash on RSS/Atom feeds for users without obj or obj.as1
...
fixes https://console.cloud.google.com/errors/detail/CKSZq8OU-tCRXA;time=P30D?project=bridgy-federated
2023-10-23 13:11:40 -07:00
dependabot[bot]
f783dcc762
build(deps): bump websockets from 11.0.3 to 12.0
...
Bumps [websockets](https://github.com/python-websockets/websockets ) from 11.0.3 to 12.0.
- [Release notes](https://github.com/python-websockets/websockets/releases )
- [Commits](https://github.com/python-websockets/websockets/compare/11.0.3...12.0 )
---
updated-dependencies:
- dependency-name: websockets
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 06:41:57 -07:00
dependabot[bot]
4205f1f626
build(deps): bump charset-normalizer from 3.3.0 to 3.3.1
...
Bumps [charset-normalizer](https://github.com/Ousret/charset_normalizer ) from 3.3.0 to 3.3.1.
- [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.3.0...3.3.1 )
---
updated-dependencies:
- dependency-name: charset-normalizer
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 06:04:44 -07:00
dependabot[bot]
50aa80884e
build(deps): bump cbor2 from 5.4.6 to 5.5.0
...
Bumps [cbor2](https://github.com/agronholm/cbor2 ) from 5.4.6 to 5.5.0.
- [Release notes](https://github.com/agronholm/cbor2/releases )
- [Changelog](https://github.com/agronholm/cbor2/blob/master/docs/versionhistory.rst )
- [Commits](https://github.com/agronholm/cbor2/compare/5.4.6...5.5.0 )
---
updated-dependencies:
- dependency-name: cbor2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 05:57:20 -07:00
Ryan Barrett
158200d9fd
bug fix for opt out, handle HTML
2023-10-21 20:51:54 -07:00
Ryan Barrett
b32045d494
postprocess_as2: duplicate content into contentMap.en
...
for #681 . this suppresses Mastodon's Translate link. longer term "right" fix is to actually detect the source's language, if available, and use it instead.
2023-10-20 13:37:54 -07:00
Ryan Barrett
1fa205af30
User.get_or_create: only fetch user profile if we don't already have it
2023-10-20 11:23:43 -07:00
Ryan Barrett
39c0d0e734
atproto: hard code our PDS URL to atproto.brid.gy
...
even on localhost
2023-10-20 11:16:23 -07:00
Ryan Barrett
6f1bf8a5ef
activitypub: handle query params in URL when checking HTTP Sig
2023-10-19 22:15:39 -07:00
Ryan Barrett
16d8832c72
receive: support ?force=true to skip "already seen this id" check
2023-10-19 22:15:14 -07:00
Ryan Barrett
d31f470178
Web.is_web_url: ignore www subdomain
...
for 3b88b0f
2023-10-19 16:25:04 -07:00
Ryan Barrett
3b88b0f315
AP: don't create "receiving" user in inbox, don't set actor to g.user in send
...
more iffy kinda scary changes. gulp. important though, baby step toward killing g.user! #690
2023-10-19 16:15:40 -07:00
Ryan Barrett
fe3a9b693c
User.get_or_create: load user profile object, fetch if it doesn't exist
2023-10-19 15:01:19 -07:00
Ryan Barrett
4faf551f8f
testutil: generate activitypub._DEFAULT_SIGNATURE_USER proactively
2023-10-19 13:09:19 -07:00
Ryan Barrett
89cd73831b
rework g.user
...
* it's always sending user ie actor
* don't pass it to task from atproto.poll_notifications (we were incorrectly passing the receiving user)
* in Protocol.receive, default g.user to actor/author
* in ActivityPub.signed_request, if g.user is ActivityPub, it won't have AP keys, so use default signing user instead
kinda scary and iffy. 🤞 🤞 🤞
2023-10-18 13:56:53 -07:00
Ryan Barrett
e66ca3fb7f
noop: expand a few log messages
2023-10-18 13:13:44 -07:00
Ryan Barrett
7e3613ab6c
fix ATProto.target_for: it should always return our base URL as the PDS
2023-10-18 12:01:17 -07:00
Ryan Barrett
9e1acf1cf7
replace copy ids with originals in Protocol.load
...
honestly not sure if this is necessary yet, and it's moderately expensive, two serial datastore queries with an IN filter. we'll see.
2023-10-18 11:18:20 -07:00
Ryan Barrett
d7a51916ad
/r/ redirect: handle bad URLs
...
fixes https://console.cloud.google.com/errors/detail/CJ30oPbsoqmI7QE;time=P30D?project=bridgy-federated
2023-10-18 11:03:22 -07:00
Ryan Barrett
efdf84a023
Protocol.receive: replace copy ids with originals, related bug fixes
2023-10-18 11:03:22 -07:00