Changeset 155c24e in Klonkt for src/config/database.js


Ignore:
Timestamp:
07/20/2026 10:52:58 PM (7 weeks ago)
Author:
Robin <roboburr@…>
Branches:
main
Children:
7922694
Parents:
e6c6e6f
git-author:
Robin <roboburr@…> (07/20/2026 10:52:57 PM)
git-committer:
Robin <roboburr@…> (07/20/2026 10:52:58 PM)
Message:

Feature: emit shaer:helpRequest on direct notes (FEP-633c 5.2.1)

The wire now claims exactly what the FEP specifies. The shaer
namespace (https://ns.klonkt.com/shaer#) joins AP_CONTEXT, so the term
is valid JSON-LD; a C2S note carrying shaer:helpRequest true routes
through the direct path with the flag stored (additive column
ap_outbox.help_request) and the built note emits the term, strictly on
direct notes only. Non-observing servers ignore it; a guardian-side
client can render the alert card the spec allows.

Changed files:
src/services/ActivityPubService.js

  • shaer namespace in AP_CONTEXT
  • ingest reads shaer:helpRequest / helpRequest from the object
  • deliverDirectNote stores the flag; buildReplyNote emits the term

src/config/database.js

  • additive column ap_outbox.help_request

test/c2s-direct.test.js

  • term emitted with flag, absent without, namespace declared

-robo
Co-Authored-By: Claude Opus 4.8 <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/config/database.js

    re6c6e6f r155c24e  
    443443  ensureColumn('ap_outbox', 'visibility', 'TEXT');  // 'direct' = private mention, never Public (shaer-tqc)
    444444  ensureColumn('ap_outbox', 'to_actors', 'TEXT');   // JSON array of recipient actor URIs for direct notes
     445  ensureColumn('ap_outbox', 'help_request', 'INTEGER'); // FEP-633c shaer:helpRequest (ward's call for help)
    445446}
    446447
Note: See TracChangeset for help on using the changeset viewer.