Ryan Barrett
9467bccb5e
noop: User.count_followers optimization, do queries async
2024-08-21 07:55:09 -07:00
Ryan Barrett
bb9e2d1f95
atproto_firehose.handle: bug fix for encoding record with CID as JSON
2024-08-21 07:55:09 -07:00
Ryan Barrett
2626bda8a4
ATProto.send_chat: narrow getConvoForMembers error handling to just "recipient disabled chat"
...
raise others, and all from sendMessage
2024-08-21 07:55:09 -07:00
dependabot[bot]
a26a59300a
build(deps): bump websockets from 12.0 to 13.0
...
Bumps [websockets](https://github.com/python-websockets/websockets ) from 12.0 to 13.0.
- [Release notes](https://github.com/python-websockets/websockets/releases )
- [Commits](https://github.com/python-websockets/websockets/compare/12.0...13.0 )
---
updated-dependencies:
- dependency-name: websockets
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-21 07:15:35 -07:00
dependabot[bot]
bf9731726f
build(deps): bump google-api-python-client from 2.141.0 to 2.142.0
...
Bumps [google-api-python-client](https://github.com/googleapis/google-api-python-client ) from 2.141.0 to 2.142.0.
- [Release notes](https://github.com/googleapis/google-api-python-client/releases )
- [Commits](https://github.com/googleapis/google-api-python-client/compare/v2.141.0...v2.142.0 )
---
updated-dependencies:
- dependency-name: google-api-python-client
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-21 05:48:19 -07:00
dependabot[bot]
3dd1ab0fc6
build(deps): bump google-cloud-audit-log from 0.2.5 to 0.3.0
...
Bumps [google-cloud-audit-log](https://github.com/googleapis/python-audit-log ) from 0.2.5 to 0.3.0.
- [Release notes](https://github.com/googleapis/python-audit-log/releases )
- [Changelog](https://github.com/googleapis/python-audit-log/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googleapis/python-audit-log/compare/v0.2.5...v0.3.0 )
---
updated-dependencies:
- dependency-name: google-cloud-audit-log
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 06:05:37 -07:00
Ryan Barrett
2ed8ba2d0f
DM to request bridging: send acknowledgment DM to requester
...
for #966
2024-08-19 21:48:02 -07:00
Ryan Barrett
c9b356f101
DM to request bridging: lots of error handling
...
reply to the requesting user in these cases:
* requestee doesn't exist
* requestee is already bridged
* requestee was already requested
* requester isn't bridged
for #966
2024-08-19 21:47:57 -07:00
Ryan Barrett
e96c61559e
tests bug fix: ExplicitEnableFake needs explicit enabling *both* directions
2024-08-19 20:08:03 -07:00
Ryan Barrett
0cc576e091
noop: Web.poll_feed_task: log when we look for an image in metaformats
...
for #1264
2024-08-19 17:18:45 -07:00
Ryan Barrett
a232cd457e
DM to request bridging: require that requesting user is bridged
...
for #966
2024-08-19 14:05:01 -07:00
Ryan Barrett
ff57074651
dms.maybe_send: make type optional
2024-08-19 13:55:05 -07:00
Ryan Barrett
004d3617f8
dms.receive: first pass at DM handle to request bridging
...
for #966
2024-08-19 13:26:45 -07:00
Ryan Barrett
e776ff944b
move not-public check from activitypub.inbox to Protocol.receive
2024-08-19 12:02:52 -07:00
dependabot[bot]
1525a0c161
build(deps): bump grpcio from 1.65.4 to 1.65.5
...
Bumps [grpcio](https://github.com/grpc/grpc ) from 1.65.4 to 1.65.5.
- [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.65.4...v1.65.5 )
---
updated-dependencies:
- dependency-name: grpcio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-19 05:12:44 -07:00
Ryan Barrett
ecab888a02
move incoming DM handling from Protocol.receive to dms.receive
2024-08-18 08:29:05 -07:00
Ryan Barrett
be2b36cf8a
start new dms module, move Protocol.maybe_bot_dm into it
2024-08-17 22:53:14 -07:00
Ryan Barrett
9265c40195
/webmention: reject fed.brid.gy/r/ URLs
...
fixes https://console.cloud.google.com/errors/detail/CLSnttKfy4v90wE;locations=global;time=P30D?project=bridgy-federated
2024-08-17 22:32:51 -07:00
Ryan Barrett
244dbc6862
DMs: drop welcome special case, don't allow multiple welcome DMs
2024-08-17 16:51:08 -07:00
Ryan Barrett
d7642e0392
AP DMs: wrap in post activity, add mention tag, improve DM vs public handling
2024-08-17 16:48:55 -07:00
Ryan Barrett
14a63b8106
Protocol.maybe_bot_dm bug fix: send a Create activity, not a bare Note
...
for #1205 etc
2024-08-17 14:35:57 -07:00
Ryan Barrett
38b646ef7d
bug fix for DM prompt when unbridged user replies to bridged user
...
use the right reply URL and in-reply-to author name and URL
for #1205
2024-08-17 12:22:05 -07:00
Ryan Barrett
34cb4fbe59
AP: fix followers and outbox for protocol bot users
...
eg https://bsky.brid.gy/bsky.brid.gy/followers , wasn't working before
2024-08-17 12:01:58 -07:00
Ryan Barrett
ea6e195835
ATProto.send_chat: add new lxm claim to JWT
...
lxm scopes the JWT to a single XRPC method, so we need a token per call now. https://github.com/bluesky-social/atproto/discussions/2687
2024-08-16 14:32:47 -07:00
Ryan Barrett
98098aeabb
when an unbridged user replies to a bridged user, DM them a prompt
...
one time only, per user per protocol!
for #1205
2024-08-16 14:03:44 -07:00
Ryan Barrett
ccb7158350
Protocol.check_supported: allow DMs both to and from bot accounts
...
for #1205 , #1148 , #966 , #1024
2024-08-16 14:01:28 -07:00
Ryan Barrett
a185b34052
Protocol.receive: switch more as1.is_dm to as1.recipient_if_dm
2024-08-16 12:46:02 -07:00
Ryan Barrett
a36340d826
docs: add &quiet=true for feed URLs
2024-08-16 11:57:47 -07:00
Ryan Barrett
0ce8eaff1a
Protocol.bot_dm => maybe_bot_dm, populate and check User.sent_dms
...
for #1205 , #1148 , #966 , #1024
2024-08-15 17:24:25 -07:00
Ryan Barrett
b5a1f32800
/convert/: when checking that author is bridged, handle cross-protocol reposts
...
for #1248 , https://console.cloud.google.com/errors/detail/CJmhz9SqmcO6vQE;time=P7D;locations=global?project=bridgy-federated
2024-08-15 14:35:49 -07:00
Ryan Barrett
2adc661aa4
/r/ and Protocol.for_id: handle bad bsky.app URLs better
...
for https://console.cloud.google.com/errors/detail/CNSB0pOhgIfdbA;locations=global;time=P30D?project=bridgy-federated
2024-08-15 14:35:49 -07:00
Ryan Barrett
9011fa2cbd
Protocol.for_id: error handling for bad URLs
2024-08-15 14:35:49 -07:00
Ryan Barrett
17371a31cb
switch User.sent_dms from Target to new DM type
2024-08-15 14:35:49 -07:00
dependabot[bot]
c7b1bb1f45
build(deps): bump google-api-python-client from 2.140.0 to 2.141.0
...
Bumps [google-api-python-client](https://github.com/googleapis/google-api-python-client ) from 2.140.0 to 2.141.0.
- [Release notes](https://github.com/googleapis/google-api-python-client/releases )
- [Commits](https://github.com/googleapis/google-api-python-client/compare/v2.140.0...v2.141.0 )
---
updated-dependencies:
- dependency-name: google-api-python-client
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-15 05:19:56 -07:00
Ryan Barrett
799ccc2a7c
noop: ATProto.send: switch as1.is_dm to as1.recipient_if_dm
2024-08-14 17:06:58 -07:00
Ryan Barrett
eedc77fcb8
make User.sent_dms per-protocol by changing its type to Target
...
for #1205 , #1148 , #966 , #1024
2024-08-14 15:11:56 -07:00
Ryan Barrett
eb9b28faa8
add User.sent_dms to track the DMs we've sent to a user
...
for #1205 , #1148 , #966 , #1024
2024-08-14 14:10:21 -07:00
Ryan Barrett
405bd06f5b
Protocol.receive: add tests for delete and undo with wrong authed_as
...
for #1243
2024-08-14 13:14:22 -07:00
Ryan Barrett
303ea175cf
Protocol.receive: more undo handling, mark object as deleted
...
also add undo test
for #1243
2024-08-14 13:07:03 -07:00
Ryan Barrett
4c12c087ac
AP outbox: turn off querying too
...
for #1248
2024-08-14 08:32:02 -07:00
dependabot[bot]
c044392a94
build(deps): bump webob from 1.8.7 to 1.8.8
...
Bumps [webob](https://github.com/Pylons/webob ) from 1.8.7 to 1.8.8.
- [Changelog](https://github.com/Pylons/webob/blob/main/CHANGES.txt )
- [Commits](https://github.com/Pylons/webob/compare/1.8.7...1.8.8 )
---
updated-dependencies:
- dependency-name: webob
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-14 05:53:40 -07:00
dependabot[bot]
d6c72b1130
build(deps): bump soupsieve from 2.5 to 2.6
...
Bumps [soupsieve](https://github.com/facelessuser/soupsieve ) from 2.5 to 2.6.
- [Release notes](https://github.com/facelessuser/soupsieve/releases )
- [Commits](https://github.com/facelessuser/soupsieve/compare/2.5...2.6 )
---
updated-dependencies:
- dependency-name: soupsieve
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-14 05:53:20 -07:00
Ryan Barrett
775756c7b2
temporarily disable outboxes
...
for #1248
2024-08-13 21:22:00 -07:00
Ryan Barrett
7b0fd25793
cut down router worker threads, receive and send queue concurrent limit
...
for #1138
2024-08-13 21:14:55 -07:00
Ryan Barrett
c086eea9eb
Protocol.targets: only use orig_obj for replies and reposts
...
...not eg link tags. for #1237 , #1257
2024-08-13 17:48:50 -07:00
Ryan Barrett
b3272e84c9
activitypub.postprocess_as2: handle multiply-valued inReplyTo
...
for #1257
2024-08-13 17:48:50 -07:00
Ryan Barrett
8d67e79f8f
Protocol.translate_ids: handle multiply valued fields like inReplyTo
2024-08-13 15:51:20 -07:00
Ryan Barrett
bfbd7494bb
web: drop feed polling max delay from 1w down to 1d
2024-08-13 09:59:37 -07:00
Ryan Barrett
f0ef0bb12b
noop: fix log message in /convert/
2024-08-12 21:04:20 -07:00
Ryan Barrett
39aa16be62
/convert/: for reposts, check that original post and author are bridged
...
for #1248 , https://github.com/snarfed/bridgy-fed/security/advisories/GHSA-6q9w-mpqc-j4j4
2024-08-12 16:03:39 -07:00