Skip to content

refactor: integrate ActivityPub EmojiReact activity via core filter hooks, extract helpers - #27

Open
julianlam wants to merge 3 commits into
masterfrom
activitypub
Open

refactor: integrate ActivityPub EmojiReact activity via core filter hooks, extract helpers#27
julianlam wants to merge 3 commits into
masterfrom
activitypub

Conversation

@julianlam

Copy link
Copy Markdown
Contributor
  • Add filter:activitypub. handlers (emojireact, like, undo,
    announce) so the plugin claims EmojiReact/Like-with-content activities
    from the core inbox via the new filter hook seam.
  • Extract emoji resolution helpers (getEmojiTable, getEmojiAliases,
    getCharacterIndex, resolveByName, resolveReaction) into helpers.js
    to keep library.js focused on plugin API and socket handlers.
  • Remove deprecated library field from plugin.json.
  • Add test suite (test/index.js) covering resolveReaction unit tests,
    controller-path AP integration, socket handler regression, and edge
    cases (unknown types, privilege denial, cap exceeded, idempotency).

Assisted-by: One of unsloth/Qwen3.6-35B-A3B-GGUF or unsloth/Qwen3.8-27B-GGUF

…ooks, extract helpers

- Add filter:activitypub.<method> handlers (emojireact, like, undo,
  announce) so the plugin claims EmojiReact/Like-with-content activities
  from the core inbox via the new filter hook seam.
- Extract emoji resolution helpers (getEmojiTable, getEmojiAliases,
  getCharacterIndex, resolveByName, resolveReaction) into helpers.js
  to keep library.js focused on plugin API and socket handlers.
- Remove deprecated `library` field from plugin.json.
- Add test suite (test/index.js) covering resolveReaction unit tests,
  controller-path AP integration, socket handler regression, and edge
  cases (unknown types, privilege denial, cap exceeded, idempotency).

Assisted-by: One of unsloth/Qwen3.6-35B-A3B-GGUF or unsloth/Qwen3.8-27B-GGUF
Assisted-by: One of unsloth/Qwen3.6-35B-A3B-GGUF or unsloth/Qwen3.8-27B-GGUF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant