diff options
Diffstat (limited to 'api4/post.go')
-rw-r--r-- | api4/post.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api4/post.go b/api4/post.go index 3a957a26f..feb6de8f9 100644 --- a/api4/post.go +++ b/api4/post.go @@ -400,8 +400,7 @@ func saveIsPinnedPost(c *Context, w http.ResponseWriter, r *http.Request, isPinn } patch := &model.PostPatch{} - patch.IsPinned = new(bool) - *patch.IsPinned = isPinned + patch.IsPinned = model.NewBool(isPinned) _, err := c.App.PatchPost(c.Params.PostId, patch) if err != nil { |