Skip to content

Enhance pragmatics documentation with new sections and examples#948

Open
Bananamilk452 wants to merge 4 commits into
fedify-dev:mainfrom
Bananamilk452:issue-946-add-more-infos-in-pragmatics
Open

Enhance pragmatics documentation with new sections and examples#948
Bananamilk452 wants to merge 4 commits into
fedify-dev:mainfrom
Bananamilk452:issue-946-add-more-infos-in-pragmatics

Conversation

@Bananamilk452

Copy link
Copy Markdown
Contributor

This pull request adds comprehensive documentation to pragmatics.md on audience addressing, replies, quote policies, and microformats in ActivityPub objects. The new sections clarify how to use the to/cc properties, create replies with proper audience and mentions, implement consent-respecting quote policies, and ensure interoperability with Mastodon and other platforms through microformats.

Audience addressing:

  • Added a section describing the use of to and cc properties (and their plural forms) for specifying primary and secondary recipients on ActivityPub objects, including code examples and links to further documentation.

Replying and quoting:

  • Documented how to create replies with Note.replyTarget, proper audience (to, ccs), and Mention tags, including a detailed code example. Explained requirements for Mastodon and Pixelfed compatibility.
  • Added guidance on supporting consent-based quote posts per FEP-044f, including how to advertise automatic or manual quote approval, and interoperability notes for Mastodon, Hackers' Pub, and Hollo.

Microformats:

  • Introduced a section on using Microformats 2 conventions in HTML content for mentions and hashtags, with practical examples and interoperability recommendations for Mastodon and Misskey.

@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for fedify-json-schema canceled.

Name Link
🔨 Latest commit 41cb247
🔍 Latest deploy log https://app.netlify.com/projects/fedify-json-schema/deploys/6a5b53f7ea0eda00087ab0ea

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the pragmatics documentation in docs/manual/pragmatics.md by adding new sections on addressing (to and cc), handling replies, allowing quotes (including FEP-044f and legacy Misskey quotes), and using Microformats 2 for embedding metadata in HTML. Since there are no review comments, I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The ActivityPub pragmatics manual now documents audience addressing, reply structure, quote consent policies, and Mastodon-compatible microformats with examples and interoperability guidance.

Changes

ActivityPub pragmatics documentation

Layer / File(s) Summary
Audience addressing guidance
docs/manual/pragmatics.md
Documents primary and secondary to/cc audiences and shows public Note addressing with PUBLIC_COLLECTION and followers.
Replies, quotes, and microformats
docs/manual/pragmatics.md
Explains replies through replyTarget/inReplyTo, mention alignment, FEP-044f quote approval, and Mastodon microformat conventions.
Estimated code review effort: 2 (Simple) ~10 minutes

Suggested labels: type/documentation

Suggested reviewers: dahlia, 2chanhaeng, sij411

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the documentation-focused changes to pragmatics.md.
Description check ✅ Passed The description matches the added documentation on addressing, replies, quotes, and microformats.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/manual/pragmatics.md`:
- Around line 801-804: Update the documentation paragraph to use consistent
`cc`/`ccs` terminology, and explicitly state that the enclosing `Create`
activity must copy the complete `to` and `cc` audience lists from its `Note`
object.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8317533f-a61b-4e1e-8fe6-8ec2e337993e

📥 Commits

Reviewing files that changed from the base of the PR and between 2d46cdb and 41cb247.

📒 Files selected for processing (1)
  • docs/manual/pragmatics.md

Comment thread docs/manual/pragmatics.md
Comment on lines +801 to +804
The `to` and `cc` values are audience addresses, not inbox URLs. In particular,
use the parent author's actor URL in `cc`, then deliver the `Create` activity to
that actor through `Context.sendActivity()`. Give the enclosing `Create`
activity the same `to` and `cc` values as its `Note` object.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Keep the audience field names consistent.

The example sets ccs, but this paragraph refers only to matching cc values. Say cc/ccs and explicitly preserve the complete audience list when copying the Note audience onto the enclosing Create activity.

Suggested wording
-Give the enclosing `Create` activity the same `to` and `cc` values as its `Note` object.
+Give the enclosing `Create` activity the same `to`/`tos` and `cc`/`ccs` audience values as its `Note` object.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
The `to` and `cc` values are audience addresses, not inbox URLs. In particular,
use the parent author's actor URL in `cc`, then deliver the `Create` activity to
that actor through `Context.sendActivity()`. Give the enclosing `Create`
activity the same `to` and `cc` values as its `Note` object.
The `to` and `cc` values are audience addresses, not inbox URLs. In particular,
use the parent author's actor URL in `cc`, then deliver the `Create` activity to
that actor through `Context.sendActivity()`. Give the enclosing `Create`
activity the same `to`/`tos` and `cc`/`ccs` audience values as its `Note` object.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/manual/pragmatics.md` around lines 801 - 804, Update the documentation
paragraph to use consistent `cc`/`ccs` terminology, and explicitly state that
the enclosing `Create` activity must copy the complete `to` and `cc` audience
lists from its `Note` object.

@codecov

codecov Bot commented Jul 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.
see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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