feat: backfeed of responses to crossposts (v2.13.0)
Likes, reposts, quotes and replies to a note's GoToSocial, Bluesky and Threads copies are read back from the silos and stored as webmentions (ADR-073): age-based schedule to 90 days, pruning of withdrawn responses, #nobridge/#nobot opt-outs, admin backfill and Check now, Threads counts, a Quotes group, local avatar copies, and delete tombstones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6aaac982d5
commit
55ce6a1fdd
27 files changed
+1763
-40
No files matched your search
@@ -250,6 +250,20 @@ def media_file(path):
|
||||
return response
|
||||
|
||||
|
||||
@bp.route("/avatars/<name>")
|
||||
def avatar(name: str):
|
||||
"""A saved copy of a response author's avatar (v2.13.0, ADR-073)"""
|
||||
from pathlib import Path
|
||||
from starpunk.avatars import NAME_RE, folder
|
||||
|
||||
if not NAME_RE.match(name):
|
||||
abort(404)
|
||||
response = send_from_directory(folder(Path(current_app.config.get('DATA_PATH', 'data'))), name)
|
||||
# Named by the hash of the original URL; a changed avatar gets a new name
|
||||
response.headers['Cache-Control'] = 'public, max-age=604800'
|
||||
return response
|
||||
|
||||
|
||||
@bp.route("/")
|
||||
def index():
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user