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
Ryan Barrett
497136f1fc
cache Protocol.for_handle
2024-08-12 13:39:11 -07:00
Ryan Barrett
5d5a983564
Protocol.bot_follow: handle when user has no profile obj
...
fixes https://console.cloud.google.com/errors/detail/CIvu-KTludO5LA;time=P1D;locations=global?project=bridgy-federated
2024-08-11 08:51:08 -07:00
Ryan Barrett
eebea504b6
Protocol.bot_dm: handle when recipient has no profile obj
...
fixes https://console.cloud.google.com/errors/detail/CIGR6crBlMKMBg;locations=global;time=P30D?project=bridgy-federated
2024-08-11 08:41:44 -07:00
Ryan Barrett
a91c8087fb
ATProto.send: gracefully handle updates/deletes that don't match original AT URI
...
for eg #1252
2024-08-11 07:42:10 -07:00
Ryan Barrett
21fb033ac7
Web.verify: if redirect destination is right, ignore HTTP status code
...
we now return 404 if the user doesn't have `has_redirects` set yet, so we need to break that loop 😀
fixes #1247
2024-08-09 12:12:27 -07:00
Ryan Barrett
07b8a3de1d
User.enable_protocol: fill in real welcome DM message
...
for #1024 , #966 , etc
2024-08-08 22:21:40 -07:00
Ryan Barrett
925771562f
add Protocol.SUPPORTS_DMS
...
for #1024 , #966 , etc
2024-08-08 20:41:57 -07:00
Ryan Barrett
cd0a4bce9e
AP: add outbound DM support
...
for #1024 , #966 , etc
2024-08-08 20:35:56 -07:00
Ryan Barrett
23aa24eb4f
User.enable_protocol: send welcome DM
...
via new Protocol.bot_dm method
for #1024 , #966 , etc
2024-08-08 20:17:06 -07:00
Ryan Barrett
37c781a2df
ATProto.send: handle DMs, translate and send as chat messages
...
for #1024 , #966 , etc
2024-08-08 20:17:06 -07:00
Ryan Barrett
356903c3e9
test_pages: test www special case domains
...
for #1244
2024-08-08 20:16:17 -07:00
Ryan Barrett
848313dfd4
ATProto.send_chat: handle 400 from getConvoForMembers, sendMessage
...
for #1024 , #966 , etc
2024-08-07 13:09:37 -07:00
Ryan Barrett
c8d6ba510f
add ATProto.send_chat
...
for #1024 , #966 , #758 , etc
2024-08-07 13:09:37 -07:00
Ryan Barrett
a49fa0d5e0
ids.translate_handle: test AP => ATProto error for leading/trailing dash
2024-08-07 13:09:37 -07:00
Ryan Barrett
479acea657
move Web.verify from /web-site handler to Web.get_or_create
...
for #1232
2024-08-06 11:07:13 -07:00
Ryan Barrett
5f1a99d6cd
Protocol.translate_ids: support multiple objects
2024-08-05 21:22:41 -07:00
Ryan Barrett
124718ecc7
ATProto.create_report bug fix: include JWT
2024-08-05 19:38:52 -07:00
Ryan Barrett
978f1f7019
noop: activitypub: existing server actor test, ignore 'ap' protocol label
2024-08-05 19:20:57 -07:00
Ryan Barrett
29482d1c66
AP: automatically bridge server/instance actors
...
for #1184
2024-08-05 13:34:55 -07:00
Ryan Barrett
6a0a0fbdc6
webfinger: don't serve domain@domain for web users without redirects
...
for #911 , #1025
2024-08-05 13:34:54 -07:00
Ryan Barrett
5679d696a4
cache models.get_originals in memory
...
for #1149
2024-08-01 16:20:13 -07:00
Ryan Barrett
001bade672
test noop: switch test_cache_policy to use ndb keys, not datastore API keys
...
https://github.com/googleapis/python-ndb/issues/987
2024-08-01 12:51:50 -07:00
Ryan Barrett
e9dc38c75c
actually turn on ndb global cache with global_cache_policy
...
🤦
2024-08-01 12:42:13 -07:00
Ryan Barrett
4097fe71fb
use ndb in-memory context cache for DID doc Objects
...
for #1149
2024-08-01 12:09:37 -07:00
Ryan Barrett
d769d03a4f
Protocol.check_supported: block DMs (for now)
2024-07-31 23:12:47 -07:00
Ryan Barrett
22570881b7
fix tests for 3529216
2024-07-31 09:23:12 -07:00
Ryan Barrett
3529216e5d
disable caching get_originals ( 88cbe3b
) until bugs are fixed
...
for #1149
2024-07-31 09:14:31 -07:00
Ryan Barrett
88cbe3b7b4
cache models.get_originals in memcache with new memcache_memoize decorator
...
for #1149
2024-07-30 14:50:33 -07:00
Ryan Barrett
33e0d0b14a
common.memcache_key: encode Unicode chars as UTF-8
2024-07-30 14:49:50 -07:00
Ryan Barrett
773a6055fc
Fake: support Flag
2024-07-28 10:15:37 -07:00
Ryan Barrett
caa8dd2341
Protocol.delete_user_copy: use better id for delete activity
...
that's more likely to pass Protocol.owns_id for all protocols. (this was failing ATProto)
2024-07-27 16:40:56 -07:00
Ryan Barrett
5454e19a23
ATProto.handle_to_id: skip opted out/blocked users
...
for #1215
2024-07-27 08:55:53 -07:00
Ryan Barrett
d14e19ce16
ATProto._convert: when converting images to blobs, skip images that we can't fetch
...
fixes errors registering web sites when fetching their favicons etc fails
2024-07-24 16:08:55 -07:00
Ryan Barrett
37e70104e5
drop unused protocol.seen_ids, we switched it to memcache a bit ago
2024-07-24 14:58:25 -07:00
Ryan Barrett
00626f5f42
ATProto.create_for: handle existing DNS record
...
delete and add new one. for #1072
2024-07-24 13:41:21 -07:00
Ryan Barrett
4c21eb2f74
ATProto.create_for: extract out set_dns_did method
...
prep for #1072
2024-07-24 08:17:06 -07:00
Ryan Barrett
da251d9ec1
ATProto: link to user page in profile footer links for web users
2024-07-23 22:11:42 -07:00
Ryan Barrett
f34d1b43a3
User.status: make opt in override #nobot but not #nobridge
...
for #1204 , re #974
2024-07-23 13:54:24 -07:00
Ryan Barrett
4e958f68e2
Web feed polling: don't use user profile images as post metaformats images
...
for #1191
2024-07-23 13:05:27 -07:00
Ryan Barrett
56cb6378d4
test_web: fix tests to include requests.get responses for fetching posts for images
...
tests weren't broken, technically, but BeautifulSoup was complaining. for 45df0ea
2024-07-23 12:13:19 -07:00
Ryan Barrett
b90cdefacf
Web.fetch bug fix: only default metaformats on for home pages
...
fixes 45df0ea
2024-07-23 11:54:56 -07:00
Ryan Barrett
755997e5f7
atproto_firehose: don't load DIDs for tombstoned AtpRepos
...
for #1193
2024-07-22 22:24:13 -07:00
Ryan Barrett
5bcb230d39
drop /bridge-user
2024-07-22 20:45:22 -07:00