Skip to content

Commit

Permalink
fix: cannot pin post
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Feb 10, 2024
1 parent 5a01588 commit a41e94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GZCTF/Models/Data/Post.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ internal Post Update(PostEditModel model, UserInfo user)
// update IsPinned should not change other fields
if (model.IsPinned != IsPinned)
{
model.IsPinned = IsPinned;
IsPinned = model.IsPinned;
return this;
}

Expand Down

0 comments on commit a41e94e

Please sign in to comment.