🐛 Fix loading poll

This commit is contained in:
2025-08-05 21:26:31 +08:00
parent 709dc44d57
commit d231b5f27e
2 changed files with 13 additions and 18 deletions

View File

@@ -341,7 +341,7 @@ public class PostController(
post.ForwardedPostId = forwardedPost.Id;
}
if (request.PollId is not null)
if (request.PollId.HasValue)
{
try
{
@@ -493,7 +493,7 @@ public class PostController(
if (request.Type is not null) post.Type = request.Type.Value;
if (request.Meta is not null) post.Meta = request.Meta;
if (request.PollId is not null)
if (request.PollId.HasValue)
{
try
{