Skip to content

Add workout comments (local + federated) #5

Description

@solargate

Summary

Allow authenticated users to comment on workouts they can view (own workouts and workouts from followed users, including federated ones). Comments must work across ActivityPub federation, consistent with existing workout delivery/inbox flow.

Scope

  • Backend: comment model + storage; CRUD API under /api/v1/workouts/:id/comments; visibility checks via CanAccessWorkout
  • Federation: deliver local comments as ActivityPub Create/Update/Delete with Note objects (inReplyTo workout URL); process inbound comment activities in InboxProcessor; store/display remote comments alongside local ones
  • UI: comment list + compose on workout detail; show local and federated authors (nickname, avatar)

Permissions

  • Comment author can edit/delete their comment
  • Workout owner can delete any comment on their workout

Out of scope (for now)

  • Reply threads / nested comments

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions