mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2026-02-04 10:54:12 +02:00
WTH LAST HOTFIX
This commit is contained in:
@@ -88,7 +88,6 @@ namespace yaflay.ru.Новая_папка
|
||||
public async Task<IActionResult> createArticle([FromBody] articleBody body)
|
||||
{
|
||||
|
||||
Console.WriteLine(body.author+body.title+body.annotation);
|
||||
HttpResponseMessage message;
|
||||
using (var requestMessage =
|
||||
new HttpRequestMessage(HttpMethod.Get, "https://discordapp.com/api/oauth2/@me"))
|
||||
@@ -100,11 +99,10 @@ namespace yaflay.ru.Новая_папка
|
||||
JsonNode response = JsonNode.Parse(responseBody);
|
||||
if (response["user"] != null || response["user"]?["id"].ToString() == "945317832290336798")
|
||||
{
|
||||
await Console.Out.WriteLineAsync(response["user"].ToString());
|
||||
Author author = new()
|
||||
{
|
||||
discordId = ulong.Parse(response["user"]["id"].ToString()),
|
||||
discordNickName = response["user"]["display_name"].ToString()
|
||||
discordNickName = response["user"]["global_name"].ToString()
|
||||
};
|
||||
Blogs article = new()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user