Ryan Barrett
6be749e386
activitypub.postprocess_as2: when adding <p> to content, also add to contentMap
...
for #1609
2025-02-06 21:59:04 -08:00
Ryan Barrett
234ceb72b5
activitypub: noop: suppress a couple log messages
2025-02-05 14:57:53 -08:00
Ryan Barrett
8043d474d7
misc doc updates
...
* simplify cross-reference links in design doc
* add docstrings to most class attrs/constants
* revise sphinx config
2025-01-31 09:34:38 -08:00
Ryan Barrett
60d594bd84
AP: add newsmast.community, channel.org to age req't exempt list
...
cc @anujahooja
2025-01-31 08:52:28 -08:00
Ryan Barrett
4611551140
add common.CACHE_CONTROL_VARY_ACCEPT
2025-01-29 11:57:50 -08:00
Ryan Barrett
899a6dd405
remove a bunch of old deprecated URL endpoints
...
looked at requests to these endpoints over the last 30d, they all have either none, or all errors, or requests for just my account (snarfed.org web)
* /ap/web/...
* /inbox
* /render
* /user/...
2025-01-26 19:40:29 -08:00
Ryan Barrett
23e07b6a2e
activitypub: stop checking whether instance domain is in Web.manual_opt_out
...
we do something like 10qpm of the initial query that loads the manual_opt_out Web domains, I guess due to spinning up new frontend instances
2025-01-24 10:36:40 -08:00
Ryan Barrett
d863add480
first pass at not storing CRUD activities any more
...
for #1360
good! but not done yet, need to fix populating Object.notify/feed, handling user vs profile ids
2025-01-20 13:45:12 -08:00
Ryan Barrett
a48ce4f7aa
temporarily exempt pixelfed.social from the 2w account age req't
...
cc @anujahooja
2025-01-15 11:50:03 -08:00
Ryan Barrett
202d43c25d
temporarily stop handling newsmast's undos of reposts
...
they've been sending 1-2qps of them to us for a while now, pretty much all spurious, or valid but older than we'd know about. cc #1686
2025-01-13 18:14:27 -08:00
Ryan Barrett
207ac48e80
noop: dms: tweak logging
2025-01-11 15:22:50 -08:00
Ryan Barrett
e8b201dc33
extract memcache logic out into new memcache.py file
2025-01-09 17:10:05 -08:00
Ryan Barrett
cf6446e76a
activitypub.postprocess_as2: handle Link objects using href field instead of url
...
for #1637 , bug fix to match snarfed/granary@14c965340f
2024-12-19 09:48:39 -08:00
Ryan Barrett
6ba481c99a
activitypub.actor: put sharedInbox on actor id's domain
...
for #1570
2024-12-15 10:16:56 -08:00
Ryan Barrett
b600f82c2d
AP inbox: start returning 403 when actor and activity/object domains don't match
...
for https://github.com/snarfed/bridgy-fed/security/advisories/GHSA-37r7-jqmr-3472
2024-12-09 14:15:37 -08:00
Ryan Barrett
a386aac45c
AP.inbox: bug fix for same-domain check
2024-12-06 15:31:21 -08:00
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