Changeset c73ac64 in Klonkt for src/routes/posts.js


Ignore:
Timestamp:
06/24/2026 01:58:33 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
5b47619
Parents:
ffa53cc
Message:

fix(activitypub): own replies show the site identity to everyone (not 'You')

Outbound reply nodes carry the site name/handle/avatar so visitors see e.g.
'Joost Groot @demo@...' instead of 'You'; the owner still gets the delete action.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/posts.js

    rffa53cc rc73ac64  
    806806  try {
    807807    const _apBase = (process.env.PUBLIC_BASE_URL || `${req.protocol}://${req.get('host')}`).replace(/\/+$/, '');
    808     fediverse = ActivityPubService.getInteractions(post.id, _apBase);
     808    fediverse = ActivityPubService.getInteractions(post.id, _apBase, site);
    809809  } catch { /* non-fatal */ }
    810810  // Owner/admin of this site may reply back to a fediverse interaction.
Note: See TracChangeset for help on using the changeset viewer.