Skip to content

feat(community): label edited posts and comments - #885

Merged
s3rot0n1n merged 2 commits into
platform-based-rewritefrom
feat/community-edited-label
Nov 15, 2026
Merged

s3rot0n1n merged 2 commits into
platform-based-rewritefrom
feat/community-edited-label

Conversation

@clbotdev

Copy link
Copy Markdown
Contributor

Asked on Discord (2026-03-06): show when a post was edited.

What changes

  • Posts and comments get editedAt, set only when the author changes what readers see (title, text, GIFs or media). Saving without a change, pinning, moving to another space and moderation don't count.
  • The community page, comments and the dashboard feed show "· Edited", with the time in a tooltip.
  • A post's date is now its creation date. It used to be updatedAt, so an edited post looked new.
  • The edited_at columns are added to the baseline migration, so a local database needs a reset.

Tests

  • Unit tests for the "was it edited" rules (API) and the label (storefront).
  • spaces.test.ts: no label after a save without changes or after pinning; set after an edit, for posts and comments.
  • Run on feat/plan-limits before this was split out; it applies cleanly here, so CI will confirm on this base.

Posts and comments record when their author last changed what readers
see (editedAt), and the feed, community page and comments show
"· Edited" with the time in a tooltip. Saving without a change, pinning,
moving between spaces and moderation don't count.

A post's date is now when it was created, so an edit no longer makes
it look new.
@s3rot0n1n s3rot0n1n assigned s3rot0n1n and unassigned s3rot0n1n Nov 15, 2026
@s3rot0n1n
s3rot0n1n merged commit 38e49d6 into platform-based-rewrite Nov 15, 2026
5 checks passed
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.

2 participants