Skip to content

Commit

Permalink
docs: add 'pin comments'
Browse files Browse the repository at this point in the history
  • Loading branch information
devrsi0n committed Oct 30, 2024
1 parent b6dbd0c commit 9a144d4
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions apps/main/posts/docs/features/pin-comments.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: 'Pin comments'
---

# Pin comments

The pin comments feature allows moderators to highlight important comments by displaying them at the top of the comment list.


## Pin option in the dropdown menu

To pin a comment:

1. Log in as a moderator
2. Click the dropdown menu of a comment
3. Select the `Pin` option.

![Pin option in the dropdown menu](/images/docs/features/pin-comments/pin-in-menu.png)

## Pinned comments

Pinned comments are displayed at the top of the list.

![Pinned comments](/images/docs/features/pin-comments/pinned-comment.png)

Pinned comments are sorted by the pinned time. The latest pinned comment will be displayed at the top of the list.
![Pinned replies](/images/docs/features/pin-comments/pinned-reply.png)
1 change: 1 addition & 0 deletions apps/main/posts/docs/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"features/analytics.mdx",
"features/anti-toxic-comment.mdx",
"features/moderate.mdx",
"features/pin-comments.mdx",
"API/webhook.mdx",
"self-hosted.mdx",
"system-maintenance.mdx"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/main/src/pages/play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const getStaticProps: GetStaticProps<StaticProps> = async (): Promise<

const result = await prisma.comment.deleteMany({
where: {
pinnedAt: null,
createdAt: {
lt: beforeDate,
},
Expand Down

0 comments on commit 9a144d4

Please sign in to comment.