Ryan Barrett
e8b201dc33
extract memcache logic out into new memcache.py file
2025-01-09 17:10:05 -08:00
Ryan Barrett
63c0e25deb
drop per-target delivery tracking
...
sad, it's useful, but it's too expensive. for #1501 , #1149
2024-12-14 20:53:47 -08:00
Ryan Barrett
0e2ba03586
DMs bug fix, don't crash if text has bot @-mention and nothing else
...
fixes https://console.cloud.google.com/errors/detail/CJia3JTRqujKcA;locations=global;time=P30D?project=bridgy-federated
2024-11-14 10:59:47 -08:00
Ryan Barrett
6e31d21aba
DMs bug fix for prompting user with leading bot @-mention
2024-11-14 09:39:31 -08:00
Ryan Barrett
36bbec3376
DMs: improve bot mention stripping
...
...to handle fully qualified fediverse handles, eg @bsky.brid.gy@bsky.brid.gy
for #1474
2024-11-12 14:25:58 -08:00
Ryan Barrett
54cf1bf5bf
incoming DMs: don't strip links that aren't @-mentions of the bot; handle empty text
...
fixes https://console.cloud.google.com/errors/detail/CJia3JTRqujKcA;locations=global;time=P30D?project=bridgy-federated
2024-10-31 16:57:16 -07:00
Ryan Barrett
0bbd2a1c2e
dms: add did command for atproto
...
for #826
2024-10-29 10:43:25 -07:00
Ryan Barrett
2d0e825c51
dms: minor tweaks to help text, add DID to username instructions
...
for #826
2024-10-29 10:43:25 -07:00
Ryan Barrett
65c19efb53
dms: handle protocols that don't support custom usernames
...
also generalize req't that user is bridged across commands
for #826
2024-10-28 20:50:54 -07:00
Ryan Barrett
6b9bec1c0a
dms: add help command, bug fix for replying
...
for #826
2024-10-28 20:35:03 -07:00
Ryan Barrett
ad910e9724
DMs: set inReplyTo when replying
2024-10-28 15:49:15 -07:00
Ryan Barrett
cb27835c0b
ATProto.set_username: emit #identity event over firehose
...
for #826
2024-10-27 21:48:32 -07:00
Ryan Barrett
4abb52b1d1
add username DM command, new Protocol.set_username method, implement in ATProto
...
for #826
2024-10-27 10:50:27 -07:00
Ryan Barrett
5bf5a7f4f1
opt_out.py: switch obj param to obj_id
...
to match bba9cb2d16
2024-10-16 18:08:14 -07:00
Ryan Barrett
a452f288fe
send and receive tasks: switch from url-safe Object key to string id
...
will affect all send tasks, but only update-profile receive tasks, the rest already switched to passing Object properties in the HTTP request directly
2024-10-11 08:53:21 -07:00
Ryan Barrett
0fd095500c
DMs: when requesting someone already bridged, link to the requester's protocol
...
for https://h-net.social/@ClaireFromClare/113168702146153596
2024-09-20 11:18:31 -07:00
Ryan Barrett
4df76d0db7
when we get a delete, or a web user opts out, delete their copies in other protocols
...
for #1304
2024-09-16 18:27:04 -07:00
Ryan Barrett
249aa38a87
dms.receive: detect when the protocol doesn't support the requested user's handle
...
fixes #1318
2024-09-10 21:20:44 -07:00
Ryan Barrett
f3ab1de6ac
dms.receive: minor tweak, use fallback for user_link
2024-09-10 17:45:08 -07:00
Ryan Barrett
794a772619
switch ATProto chat polling from task to cron job
2024-09-10 16:46:37 -07:00
Ryan Barrett
b24071576d
dms.receive logging bug fix for when we can't parse content
2024-09-10 14:12:54 -07:00
Ryan Barrett
c49742f226
dms.receive: strip leading @ if necessary
...
for #966
2024-09-05 13:22:58 -07:00
Ryan Barrett
3eba6d9e91
DMs: more minor tweaks to the request DM
2024-08-27 22:44:37 -07:00
Ryan Barrett
e40958a7c1
DMs: tweak request text
2024-08-25 13:06:08 -07:00
Ryan Barrett
0f6798389b
dms: bug fix for request limit in memcache, use integer seconds expiration
2024-08-22 17:57:37 -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
6675d9805c
User.user_link: add name, handle, pictures, proto kwargs, remove maybe_internal_link
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
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
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