fix author url

add many ownersid
This commit is contained in:
Дмитрий Шиманский
2023-12-22 23:54:41 +03:00
parent f79e10f148
commit 782dea8c9d
7 changed files with 23 additions and 22 deletions

View File

@@ -44,7 +44,7 @@ namespace yaflay.ru.Новая_папка
}
string responseBody = await message.Content.ReadAsStringAsync();
JsonNode response = JsonNode.Parse(responseBody);
if (response["user"] != null || response["user"]?["id"].ToString() == Startup.ownerId)
if (response["user"] != null || Startup.ownerId.FirstOrDefault(k => k.Equals(response["user"]?["id"].ToString())) != null)
{
Redirects redirects = new()
{
@@ -73,7 +73,7 @@ namespace yaflay.ru.Новая_папка
}
string responseBody = await message.Content.ReadAsStringAsync();
JsonNode response = JsonNode.Parse(responseBody);
if (response["user"] != null || response["user"]?["id"].ToString() == Startup.ownerId)
if (response["user"] != null || Startup.ownerId.FirstOrDefault(k => k.Equals(response["user"]?["id"].ToString())) != null )
{
try
{