Ryan Barrett
43c94ad2e0
atproto_firehose.subscribe: handle commits on unsupported collections without record
...
fixes https://console.cloud.google.com/errors/detail/CJT6x7XMiNLobg;time=PT1H;locations=global?project=bridgy-federated
2024-08-30 13:29:39 -07:00
Ryan Barrett
5dfb17428e
atproto_firehose: move storing cursor from handle to subscribe
...
...so that I can run multiple handle threads for scaling
2024-08-30 13:16:17 -07:00
Ryan Barrett
dc38079cc2
noop: remove a few unused imports in tests
2024-08-30 10:41:15 -07:00
Ryan Barrett
c1dcc03ee3
atproto_firehose.handle: handle missing $type
...
fixes https://console.cloud.google.com/errors/detail/CLal7vX3yJ6-1QE;locations=global;time=P30D?project=bridgy-federated
2024-08-29 22:02:02 -07:00
Ryan Barrett
84bf09715d
update ATProto.convert test for snarfed/granary@5755cb7
2024-08-29 18:43:43 -07:00
Ryan Barrett
01fbc604e9
atproto.poll_chat_task: fill in DM recipient (to) manually
...
it's not in chat.bsky.convo.defs#messageView, and the repo DID in the at:// URI should be the sender's, not the recipient's
for #966
2024-08-29 16:49:07 -07:00
Ryan Barrett
a896b5c869
Protocol.check_supported: allow DMs to/from protocol bot user copy ids
...
for #966
2024-08-29 12:56:07 -07:00
Ryan Barrett
c974c6fe2a
ATProto.poll_chat_task: ignore chat messages from protocol bot users
...
for #966
2024-08-29 12:52:27 -07:00
Ryan Barrett
832b3e3914
ATProto chat log polling: update to handle getLog semantics
...
re https://github.com/bluesky-social/atproto/issues/2760 , for #966
2024-08-29 12:52:27 -07:00
Ryan Barrett
9c0ad8c00c
ATProto: poll for new chat messages to protocol bot users
...
for #966
2024-08-27 22:44:37 -07:00
Ryan Barrett
150598d761
User.user_link: refactor to get rid of extra spaces
2024-08-25 09:48:32 -07:00
Ryan Barrett
bb0d1dae5f
noop style fix for test_models.py
2024-08-25 09:48:31 -07:00
Ryan Barrett
52e1a8d867
limit DM requests to 10 per user per day, via memcache counter
...
for #966
2024-08-22 17:18:13 -07:00
Ryan Barrett
e2b6b59ff4
activitypub.postprocess_as2: for Create/Update, put object's to/cc into activity
...
for possible Pleroma/Akkoma interop:
https://git.pleroma.social/pleroma/pleroma/-/issues/3206#note_108296
https://indieweb.social/@diego@lounge.collabfc.com/112977955332152430
2024-08-21 11:39:06 -07:00
Ryan Barrett
6675d9805c
User.user_link: add name, handle, pictures, proto kwargs, remove maybe_internal_link
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
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
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
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
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
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
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
775756c7b2
temporarily disable outboxes
...
for #1248
2024-08-13 21:22:00 -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
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
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
Ryan Barrett
69a158aee5
suppress bs4 DeprecationWarning, 'strip_cdata' option of HTMLParser
...
local/lib/python3.11/site-packages/bs4/builder/_lxml.py:124: DeprecationWarning: The 'strip_cdata' option of HTMLParser() has never done anything and will eventually be removed.
introduced in lxml 5.3.0, d31d21396c
2024-08-12 13:51:50 -07:00
Ryan Barrett
fa170253fe
/convert/: check that object (if necessary) and user are bridged
...
for #1248 , https://github.com/snarfed/bridgy-fed/security/advisories/GHSA-6q9w-mpqc-j4j4
2024-08-12 13:51:50 -07:00