#467 compile fix

This commit is contained in:
Hamid Reza Mohammadi 2025-03-24 13:19:41 +03:30
parent 5feaf8cea4
commit 4539dd8870
3 changed files with 3 additions and 7 deletions

View File

@ -2,9 +2,7 @@
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Web;
using DNTPersianUtils.Core;
using GanjooRazor.Utils;
using Microsoft.AspNetCore.Mvc;
@ -104,7 +102,7 @@ namespace GanjooRazor.Areas.Admin.Pages
if(donation != null)
{
int rowNumber = Donations.Length - Array.IndexOf(Donations, donation);
string donorName = GanjoorPoemTools.StripHtmlTags(donation.DonorName);
string donorName = GanjoorHtmlTools.StripHtmlTags(donation.DonorName);
if(donorName.StartsWith("آقای"))
{
donorName = $"جناب {donorName}";

View File

@ -90,7 +90,7 @@ namespace GanjooRazor.Areas.Admin.Pages
}
PageInformation = JObject.Parse(await pageQuery.Content.ReadAsStringAsync()).ToObject<GanjoorPageCompleteViewModel>();
Links = GanjoorPoemTools.ExtractLinksWithRegex(Correction.DescriptionHtml);
Links = GanjoorHtmlTools.ExtractLinksWithRegex(Correction.DescriptionHtml);
}

View File

@ -8,8 +8,6 @@ using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System;
using System.Text.RegularExpressions;
using System.Web;
using RMuseum.Utils;
namespace GanjooRazor.Areas.User.Pages
@ -125,7 +123,7 @@ namespace GanjooRazor.Areas.User.Pages
{
try
{
Correction.Description = GanjoorPoemTools.StripHtmlTags(Correction.DescriptionHtml);
Correction.Description = GanjoorHtmlTools.StripHtmlTags(Correction.DescriptionHtml);
using (HttpClient secureClient = new HttpClient())
{
if (await GanjoorSessionChecker.PrepareClient(secureClient, Request, Response))