From 942ca73f8dd64fdcb8faee2b037184b2fb3bb961 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 7 Sep 2025 21:54:10 +0800 Subject: [PATCH] :bug: Trying to fix award post --- DysonNetwork.Sphere/Post/PostController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DysonNetwork.Sphere/Post/PostController.cs b/DysonNetwork.Sphere/Post/PostController.cs index 4364485..48927d2 100644 --- a/DysonNetwork.Sphere/Post/PostController.cs +++ b/DysonNetwork.Sphere/Post/PostController.cs @@ -425,7 +425,7 @@ public class PostController( { publisher = await pub.GetPublisherByName(pubName); if (publisher is null) return BadRequest("Publisher was not found."); - if (!await pub.IsMemberWithRole(publisher.Id, accountId, Publisher.PublisherMemberRole.Editor)) + if (!await pub.IsMemberWithRole(publisher.Id, accountId, PublisherMemberRole.Editor)) return StatusCode(403, "You need at least be an editor to post as this publisher."); } @@ -621,7 +621,8 @@ public class PostController( ProductIdentifier = "posts.award", Currency = "points", // NSP - Source Points Remarks = $"Award post {orderRemark}", - Meta = GrpcTypeHelper.ConvertObjectToByteString(new Dictionary() + Amount = request.Amount.ToString(CultureInfo.InvariantCulture), + Meta = GrpcTypeHelper.ConvertObjectToByteString(new Dictionary { ["account_id"] = accountId, ["post_id"] = post.Id,