# Pin Comments/Replies

Commenter allows you to pin a message (comment or reply). The pinned message is moved to the top of the comments list and highlighted to draw users’ attention first.

### Enable/Disable

You can easily enable or disable this feature under the **pin** key in the config file.

```
 // commenter.php
 
 /**
 * Ability to pin comment or reply
 */
'pin' => [
    'enable_comment' => true,
    'enable_reply' => false,
],
```

### Permissions&#x20;

The pin functionality is grouped under the **Edit Menu**. Therefore, to pin a message, a user must have permission to manipulate the message (update or delete).

<figure><img src="https://41269445-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNUm3rlVtLJfoxtobXgbA%2Fuploads%2FEeXUSObN5jQvtbU4q0Ar%2FScreenshot%20from%202025-10-27%2011-36-25.png?alt=media&#x26;token=a04615c8-ad24-402b-8bed-f90429f44435" alt=""><figcaption></figcaption></figure>

Next, define the policy. By default, the pin policy is disabled. To enable it, create a custom **policy** class and register it under the `pin-message` **permission** key in the Commenter config file.

```
// commenter.php

'permissions' => [
     ...
    'pin-message' => [MyPinMessagePolicy::class, 'pin'],
],
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lakm.gitbook.io/commenter/configuration/pin-comments-replies.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
