Applies to: Mattermost v11.7.0 and later; controlled by ServiceSettings.PostEditTimeLimit
Symptoms: After upgrading to v11.7.0, users cannot pin or unpin messages older than the configured post edit time limit (for example, 2 days).
🛑 Problem
As of v11.7.0 (pull request #35638), the post edit time limit was deliberately broadened from message text only to any post mutation, including message, file IDs, props, and the IsPinned flag. Because pinning and unpinning change post metadata, they are now treated as a post modification and gated by ServiceSettings.PostEditTimeLimit. With the limit set to 172800 seconds (2 days), any post older than 2 days can no longer be pinned or unpinned. Before this change, pin and unpin actions had no time-limit check.
Symptoms
{"timestamp":"2026-06-15 11:40:53.988 +02:00","level":"debug","msg":"Post edit is only allowed for 172800 seconds. Please ask your System Administrator for details.","caller":"web/context.go:118","path":"/api/v4/posts/ggjq1gzghpnptpbm6ix8cd88ey/pin","err_where":"saveIsPinnedPost","http_code":400,"error":"saveIsPinnedPost: Post edit is only allowed for 172800 seconds. Please ask your System Administrator for details."}- Pinning or unpinning messages older than the post edit time limit fails.
- The behavior started after upgrading to v11.7.0; pinning older messages worked before.
âś… Solution
To allow pinning and unpinning of older posts, raise the post edit time limit or set it to -1 (unlimited).
Raise or disable the post edit time limit
- In
config.json, set the post edit time limit to unlimited:
"ServiceSettings.PostEditTimeLimit": -1
Alternatively, raise the limit to a larger value that suits your needs.
⚠️ Important: Although the documentation lists PostEditTimeLimit under deprecated settings (alongside the removed AllowEditPost), PostEditTimeLimit is still present and is the single source of truth. If you edit the time limit inside the permission scheme in the System Console, the same configuration value is set (in config.json or the configurations table in the database).
Comments
Article is closed for comments.