Wykres commitów

202 Commity (38fd1d4c96e59e14e60948fb0a9b7efcf6f6d4c3)

Autor SHA1 Wiadomość Data
Ryan Barrett d14ad89960
AP: add split domain support via full webfinger resolution
implemented in ActivityPub.reload_profile, based on https://www.w3.org/community/reports/socialcg/CG-FINAL-apwf-20240608/#reverse-discovery and https://correct.webfinger-canary.fietkau.software/#developers . thanks @jfietkau! for #1031
2025-05-16 11:12:15 -07:00
Ryan Barrett 2249fee5eb
pages.load_user: look for all matching users, not just the first 2025-03-20 17:46:56 -07:00
Ryan Barrett b963ca49aa
user profile page: add rel-alternate link to AP actor
for #1840
2025-03-20 12:14:50 -07:00
Ryan Barrett 14f5dc8e10
noop: drop deprecated User.readable_id property 2025-03-19 13:24:45 -07:00
Ryan Barrett 0a2e29010f
add more specific User.status values, DM users when they can't opt in
also allow more inbound activities from ineligible users, eg when they're just following a bridged user

for #758, #1135, #1005
2025-02-06 09:24:43 -08:00
Ryan Barrett dfa003770a
misc docs and docstring tweaks. more to come 2025-01-30 11:40:54 -08:00
Ryan Barrett 005524df2c
cache nodeinfo in memcache 2025-01-28 20:26:06 -08:00
Ryan Barrett 7bf659be39
pages: nodeinfo noop: drop Cache-Control header that gets overwritten 2025-01-28 20:26:06 -08:00
Ryan Barrett 694b613c79
nodeinfo: tweak user counts logging, again 2025-01-28 20:26:06 -08:00
Ryan Barrett bca276d6a2
nodeinfo: only count enabled web users
for #1509
2025-01-27 15:49:19 -08:00
Ryan Barrett 77e79d20bf
nodeinfo: add per-protocol user counts
fixes #1509
2025-01-26 22:22:19 -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 860a44ca4d
add HTTP caching to feed serving 2025-01-24 21:25:23 -08:00
Ryan Barrett 0c17d0a40e
remove /memcache_command and /python_eval
too scary to have in the codebase even with auth around them
2025-01-14 12:48:45 -08:00
Ryan Barrett cd28e4d68b
stop serving user pages and counting followers for protocol bot users
for #1561, #1678
2025-01-12 08:32:18 -08:00
Ryan Barrett 9b9075e116
turn off ndb datastore lookup logging 2025-01-11 17:22:14 -08:00
Ryan Barrett e80dacdb2c
add /user-page form for finding user page, for any protocol
for #1043
2025-01-10 12:38:46 -08:00
Ryan Barrett ae315a4257
add new Protocol.DEFAULT_SERVE_USER_PAGES config attr
for #1043
2025-01-10 11:36:22 -08:00
Ryan Barrett 9eaab23bcc
hook up python eval endpoint up in router, hub 2025-01-10 10:21:40 -08:00
Ryan Barrett a5371582b1
add temporary python eval debugging endpoint to all three services 2025-01-10 09:33:39 -08:00
Ryan Barrett e8b201dc33
extract memcache logic out into new memcache.py file 2025-01-09 17:10:05 -08:00
Ryan Barrett 1aca15ee1e
drop User.direct
subsumed by User.enabled_protocols. for #973
2025-01-06 20:06:23 -08:00
Ryan Barrett 3e17806401
RSS feeds: add default email address so that author gets populated
for https://github.com/snarfed/granary/pull/847
2024-12-23 12:54:13 -08:00
Ryan Barrett 0d82d49034
make remote follow handle non-web users
for #1640. thanks for reporting @mistrk7!
2024-12-20 10:07:51 -08:00
Ryan Barrett 572ca2c9ab
Revert "temporarily disable tasklet patch and hydrating objects/authors in pages.serve_feed"
This reverts commit 01ba8b5d50.

didn't help with ndb caching

for #1149
2024-12-19 16:41:55 -08:00
Ryan Barrett 01ba8b5d50
temporarily disable tasklet patch and hydrating objects/authors in pages.serve_feed
for https://github.com/snarfed/bridgy-fed/issues/1149#issuecomment-2555798869
2024-12-19 13:25:34 -08:00
Ryan Barrett 604a7f6aaf
minimal HTTP memcache proxy in new /memcache endpoint
for #1472
2024-12-13 22:00:27 -08:00
Ryan Barrett 7818fb37fb
drop /stats page 2024-12-04 07:48:40 -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 8335b2216f
pages.load_user: when querying by handle, exclude opt out, blocked
for #1451
2024-11-03 12:39:22 -08:00
Ryan Barrett 2cd127bb5a
/update-profile: for Web users, try to set ATProto handle to domain
for #826
2024-10-28 21:23:11 -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 2a13b83084
ATProto: reload DID doc along with profile when necessary
for #1334
2024-10-03 17:06:46 -07:00
Ryan Barrett 7015262315
/update-profile: fix ugly bug for Web users that deleted their profiles
introduced in 4df76d0db7
2024-09-22 12:57:09 -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 00d4e65e7e
nodeinfo: switch atproto to atprotocol
...to match https://github.com/jhass/nodeinfo/pull/100
2024-09-11 11:13:58 -07:00
Ryan Barrett 9d2019fdca
minor nodeinfo tweaks
https://nodeinfo.diaspora.software/schema.html
2024-08-08 20:16:17 -07:00
Ryan Barrett 5bcb230d39
drop /bridge-user 2024-07-22 20:45:22 -07:00
Ryan Barrett 2a63b1cc27
nodeinfo: log total user count 2024-07-20 15:19:29 -07:00
Ryan Barrett 733af4aafa
AP: add AP, ATProto users to nodeinfo total users
oops 😆
2024-06-26 11:39:09 -07:00
Ryan Barrett 6eda331946
user page UI: apply status to query by handle as well as get_by_id 2024-06-23 08:03:22 -07:00
Ryan Barrett 83893d0ea7
HTTP caching headers: switch to flask_util.headers
for #432, fixes https://console.cloud.google.com/errors/detail/CMK10__x4ZbgbQ;time=P7D;refresh=true?project=bridgy-federated
2024-06-04 14:19:39 -07:00
Ryan Barrett d0ca690dc4
HTTP Cache-Control header bug fix, use integer seconds for max-age, not float
for #432
2024-05-30 17:12:45 -07:00
Ryan Barrett 9c4888b02e
switch from flask_util.cached to HTTP caching, suppress some verbose logging 2024-05-30 14:55:35 -07:00
Ryan Barrett 8f5d8221a9
add ids.profile_id, use everywhere
for #566
2024-05-29 16:18:15 -07:00
Ryan Barrett 1de49de720
update-profile: pass user id to receive task authed_as, not handle
for #566
2024-05-28 14:54:31 -07:00
Ryan Barrett f533479e0b
noop: drop unused flask.g imports 2024-05-07 17:14:59 -07:00
Ryan Barrett c943e6fd87
/update-profile: bug fix for when user profile fetch fails
fixes https://console.cloud.google.com/errors/detail/CLzStOz_oPfYxwE;time=P30D?project=bridgy-federated
2024-05-05 19:22:11 -07:00
Ryan Barrett efedc49cc0
AP: implement FEP-2677: add instance actor to nodeinfo
https://codeberg.org/fediverse/fep/src/branch/main/fep/2677/fep-2677.md
2024-05-05 13:02:44 -07:00
Ryan Barrett 2a4146fe74
update profile UI: link handle in flashed message 2024-04-28 06:50:46 -07:00