mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2025-12-11 16:16:26 +02:00
fix author url
add many ownersid
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
@if (Request.Cookies["melon"] != null)
|
||||
{
|
||||
|
||||
if (Request.Cookies["cable"] != Startup.ownerId)
|
||||
if (Startup.ownerId.FirstOrDefault(k => k.Equals(Request.Cookies["cable"])) != null)
|
||||
{
|
||||
<h1 align="center">Вы не авторизованы! Сасни хуйца, олух</h1>
|
||||
isAllowed = false;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
@{
|
||||
ViewData["Title"] = "Authorize";
|
||||
string authorizationUrl = $"https://discord.com/api/oauth2/authorize?client_id={Startup.clientId}&response_type=code&redirect_uri={Startup.redirectUrl}&scope=identify";
|
||||
<p style="display:none;">Data: @Startup.clientId @Startup.redirectUrl @Startup.ownerId @Model.code</p>
|
||||
<p style="display:none;">Data: @Startup.clientId @Startup.redirectUrl @String.Join(",", Startup.ownerId) @Model.code</p>
|
||||
if (Model.code == null)
|
||||
{
|
||||
if (Request.Cookies["melon"]?.ToString() == null)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<div id="blogId" style="display:none;">@Model.Id</div>
|
||||
<p align="center"><img src="@Post.ImageUrl" style="width:50vmax;"/></p>
|
||||
<p align="center">@Html.Raw(Post.Text)</p>
|
||||
string userId = "https://discord.com/users/"+Post.author.Id;
|
||||
string userId = "https://discord.com/users/"+Post.author.discordId;
|
||||
<h6 align="left">Статья подготовлена <a href="@userId">@Post.author.discordNickName</a></h6>
|
||||
<div class="container my-5 py-5 bg-dark text-muted">
|
||||
<div class="row d-flex justify-content-center">
|
||||
|
||||
Reference in New Issue
Block a user