Skip to content

Comments

Comments in Sosyabot are internal annotations, not a sync layer for platform-native comments. Use them to collaborate with teammates on a post (review notes, copy edits, approval discussion) — they live in your workspace and are never published.

Endpoints

GET    /api/v1/posts/:postId/comments        list
POST   /api/v1/posts/:postId/comments        create  { body: string }
PATCH  /api/v1/posts/comments/:commentId     update  { body: string }
DELETE /api/v1/posts/comments/:commentId     delete

Comment model

typescript
{
  post_id: ObjectId,    // indexed
  author: ObjectId,     // indexed
  team_id: ObjectId,
  body: string,         // max 5000 chars
  mentions: ObjectId[], // extracted @user references
  edited_at: Date | null,
}

Mentions

Bodies are scanned with /@([a-zA-Z0-9._-]+)/g. Matched handles are looked up by email or display name; the resolved user IDs are persisted in mentions, and each mentioned user receives a notification.

What this is not

Comments are not platform-native — Sosyabot does not poll Twitter, Instagram, LinkedIn, etc. for replies on your published posts. There is no comment-sync service in the codebase today. If you need to monitor public replies, use the platform's native UI or a dedicated social-listening tool.