Wykres commitów

440 Commity (e658f103692df05536217c149c4b1f63753a5225)

Autor SHA1 Wiadomość Data
Ryan Barrett e658f10369
ActivityPub.inbox: start on same-domain check for actors and activity/object ids
for https://github.com/snarfed/bridgy-fed/security/advisories/GHSA-37r7-jqmr-3472
2024-12-06 14:51:40 -08:00
Ryan Barrett 65d4f78ae2
Web.get_or_create: re-verify more often
fixes https://github.com/snarfed/bridgy-fed/discussions/1601
2024-12-05 14:09:55 -08:00
Ryan Barrett 94a0c2618e
prune down misc logging
for #1149
2024-12-02 22:20:12 -08:00
Ryan Barrett 2eca1c074c
AP: strip internal content_is_html field before sending activities
for #1584, maybe
2024-12-02 12:44:26 -08:00
Ryan Barrett df505c1c0a
activitypub.postprocess_as2: handle attachments with list-valued url field
fixes https://console.cloud.google.com/errors/detail/CIDK5t6OiZvM4QE;time=P7D;locations=global?project=bridgy-federated&inv=1&invt=AbjA2Q
2024-12-01 20:11:19 -08:00
Ryan Barrett 20dc814c80
add 2m delay to receive tasks for deletes
for #1361
2024-11-28 21:39:30 -08:00
Ryan Barrett 538065792e
User.get_or_create: don't propagate if the user is blocked
ie for web sites that don't have RSS or Atom feed or webmentions

for #1458
2024-11-27 09:04:38 -08:00
Ryan Barrett 55a3d4a9ab
activitypub.postprocess_as2_actor: bug fix for PropertyValue attachment without value
fixes https://console.cloud.google.com/errors/detail/CPmj9e-Oh5PNfQ;locations=global;time=P30D?project=bridgy-federated&inv=1&invt=AbhrPA
2024-11-18 14:39:12 -08:00
Ryan Barrett d95a5f6753
ActivityPub.actor: add Vary: Accept header
...since it now does conneg. for #1493
2024-11-16 13:11:18 -08:00
Ryan Barrett 3ffe589e96
AP: put Accept activity id on same BF domain as actor
for #1093
2024-11-01 21:29:51 -07:00
Ryan Barrett fa04b2ea44
AP actor endpoint: check conneg, redirect to profile if not an AS2 request
hopefully fixes #1009
2024-10-31 18:09:30 -07:00
Ryan Barrett b4ac98c84e
move common.add, remove to webutil.util
in snarfed/webutil@46ef97e4fe
2024-10-31 09:41:28 -07:00
Ryan Barrett ad910e9724
DMs: set inReplyTo when replying 2024-10-28 15:49:15 -07:00
Ryan Barrett fa8149165b
receive task: fix delay logging
for #1378
2024-10-23 21:11:21 -07:00
Ryan Barrett 61b30f09ec
activitypub._load_user: handle bad web ids
fixes https://console.cloud.google.com/errors/detail/CLaR2pODkb-KxAE;locations=global;time=P30D?project=bridgy-federated
2024-10-17 09:49:29 -07:00
Ryan Barrett bba9cb2d16
send and send task: switch orig_obj param from urlsafe-key to string id
...so that we can defer loading it to each protocol's send(). only ActivityPub actually needs it right now. should get rid of it eventually! see #1257
2024-10-11 11:34:31 -07:00
Ryan Barrett d37f83b11b
use raise_=False in more Protocol.load calls 2024-10-04 12:59:57 -07:00
Ryan Barrett 4255719939
activitypub.actor: put native user id in alsoKnownAs
for https://github.com/snarfed/bridgy-fed/issues/1331
2024-10-02 15:01:07 -07:00
Ryan Barrett 788b37279a
pass Object data in receive task HTTP payload instead of through datastore
trying to cut down datastore load and costs. this switches receive tasks from storing and fetching Objects from the datastore to passing their properties - notably as2, our_as1, bsky, etc - in the HTTP request body, as serialized JSON inside form-encoded params.

for #1354, #1149
2024-10-01 21:44:12 -07:00
Ryan Barrett e4db9d62cd
Web.verify: check host-meta, and if site serves it, interpret as a fediverse server
for #911
2024-09-18 20:46:21 -07:00
Ryan Barrett c641c5ef1f
ActivityPub.send: skip if no from_user
fixes https://console.cloud.google.com/errors/detail/CJ-QrsHmi8qr6AE;locations=global;time=P30D?project=bridgy-federated
2024-09-13 22:26:33 -07:00
Ryan Barrett f3522e42bc
Protocol.translate_ids: translate to, cc, bto, bcc
for #12
2024-09-13 14:50:43 -07:00
Ryan Barrett cfaacb8ff5
stop unwrapping ids etc in ActivityPub.inbox, do it in Object.as1 instead
for #12
2024-09-13 13:09:22 -07:00
Ryan Barrett 3dc3330603
code doc and docstring tweaks 2024-09-12 13:05:41 -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 e776ff944b
move not-public check from activitypub.inbox to Protocol.receive 2024-08-19 12:02:52 -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 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 4c12c087ac
AP outbox: turn off querying too
for #1248
2024-08-14 08:32:02 -07:00
Ryan Barrett 775756c7b2
temporarily disable outboxes
for #1248
2024-08-13 21:22:00 -07:00
Ryan Barrett b3272e84c9
activitypub.postprocess_as2: handle multiply-valued inReplyTo
for #1257
2024-08-13 17:48:50 -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 a96209a333
AP inbox: check that activity is public before verifying signature 2024-08-07 13:09:37 -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 70dd6d3ceb
minor logging optimizations
for https://github.com/snarfed/bridgy-fed/issues/1149
2024-08-02 08:03:44 -07:00
Ryan Barrett 96846c2f2a
protocol, activitypub: drop some verbose logging from INFO down to DEBUG 2024-07-25 14:44:15 -07:00
Ryan Barrett 7e792ea22f
drop spam filter req't that display name is different than username
for https://akkoma.dev/AkkomaGang/akkoma/issues/438#issuecomment-12745 , cc @snan
2024-07-16 10:46:17 -07:00
Ryan Barrett 1f73058ef6
Protocol.receive, ActivityPub.inbox: consolidate memcache key for seen activities 2024-07-12 08:21:30 -07:00
Ryan Barrett 7b0151b0cf
memcache: truncate keys at 250 chars
max memcache key len:
https://github.com/memcached/memcached/wiki/Commands#standard-protocol
https://pymemcache.readthedocs.io/en/latest/apidoc/pymemcache.client.base.html

fixes https://console.cloud.google.com/errors/detail/CNPzqYzWg4_TyQE;time=P30D?project=bridgy-federated
2024-07-12 07:50:54 -07:00
Ryan Barrett 08b41b0ede
test Protocol.targets for undo block, special case in activitypub.postprocess_as2
for #1162
2024-07-06 19:36:11 -07:00
Ryan Barrett df75e97880
atproto_firehose.handle bug fix: deletes don't have records
for #1162
2024-07-06 14:47:14 -07:00
Ryan Barrett e5a6ebf228
drop Protocol.HAS_FOLLOW_ACCEPTS in favor of SUPPORTED_AS1_TYPES 2024-07-05 23:12:35 -07:00
Ryan Barrett 2d1cb80e80
Protocol.check_supported bug fix: handle undo of activity 2024-07-05 12:26:59 -07:00
Ryan Barrett 08591a11db
ActivityPub.inbox: don't report error on unsupported type, just log 2024-07-04 22:28:41 -07:00
Ryan Barrett b606924d63
refactor SUPPORTED_AS1_TYPES usage into new Protocol.check_supported method 2024-07-04 21:11:38 -07:00
Ryan Barrett 850d681f83
add Protocol.SUPPORTED_AS1_TYPES 2024-07-04 16:58:06 -07:00
Ryan Barrett 25199f8c9a
activitypub.inbox: only mark id seen in memcache after we've enqueued the receive task
for https://github.com/snarfed/bridgy-fed/issues/1047#issuecomment-2195287066
2024-06-27 13:20:07 -07:00
Ryan Barrett 85d85d1ffd
AP: harden outbox and followers/ing collections to only count up to a limit
we should eventually precompute them so we can always return them cheaply!

for #1152
2024-06-26 10:56:27 -07:00