|
|
@@ -17,7 +17,6 @@ using System.Collections.Generic;
|
|
|
using System.IO;
|
|
|
using System.Linq;
|
|
|
using System.Text.RegularExpressions;
|
|
|
-using System.Web;
|
|
|
|
|
|
namespace Masuit.MyBlogs.Core.Controllers
|
|
|
{
|
|
|
@@ -118,7 +117,7 @@ namespace Masuit.MyBlogs.Core.Controllers
|
|
|
//新评论,只通知博主和楼主
|
|
|
foreach (var s in emails.Distinct())
|
|
|
{
|
|
|
- BackgroundJob.Enqueue(() => CommonHelper.SendMail(HttpUtility.UrlDecode(Request.Headers[HeaderNames.Referer]) + "|博客文章新评论:", content.Replace("{{link}}", Url.Action("Details", "Post", new { id = com.PostId, cid = com.Id }, Request.Scheme) + "#comment"), s));
|
|
|
+ BackgroundJob.Enqueue(() => CommonHelper.SendMail(CommonHelper.SystemSettings["Domain"] + "|博客文章新评论:", content.Replace("{{link}}", Url.Action("Details", "Post", new { id = com.PostId, cid = com.Id }, Request.Scheme) + "#comment"), s));
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
@@ -129,7 +128,7 @@ namespace Masuit.MyBlogs.Core.Controllers
|
|
|
string link = Url.Action("Details", "Post", new { id = com.PostId, cid = com.Id }, Request.Scheme) + "#comment";
|
|
|
foreach (var s in emails)
|
|
|
{
|
|
|
- BackgroundJob.Enqueue(() => CommonHelper.SendMail($"{HttpUtility.UrlDecode(Request.Headers[HeaderNames.Referer])}{CommonHelper.SystemSettings["Title"]}文章评论回复:", content.Replace("{{link}}", link), s));
|
|
|
+ BackgroundJob.Enqueue(() => CommonHelper.SendMail($"{CommonHelper.SystemSettings["Domain"]}{CommonHelper.SystemSettings["Title"]}文章评论回复:", content.Replace("{{link}}", link), s));
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
@@ -137,7 +136,7 @@ namespace Masuit.MyBlogs.Core.Controllers
|
|
|
}
|
|
|
foreach (var s in emails.Distinct())
|
|
|
{
|
|
|
- BackgroundJob.Enqueue(() => CommonHelper.SendMail(HttpUtility.UrlDecode(Request.Headers[HeaderNames.Referer]) + "|博客文章新评论(待审核):", content.Replace("{{link}}", Url.Action("Details", "Post", new { id = com.PostId, cid = com.Id }, Request.Scheme) + "#comment") + "<p style='color:red;'>(待审核)</p>", s));
|
|
|
+ BackgroundJob.Enqueue(() => CommonHelper.SendMail(CommonHelper.SystemSettings["Domain"] + "|博客文章新评论(待审核):", content.Replace("{{link}}", Url.Action("Details", "Post", new { id = com.PostId, cid = com.Id }, Request.Scheme) + "#comment") + "<p style='color:red;'>(待审核)</p>", s));
|
|
|
}
|
|
|
return ResultData(null, true, "评论成功,待站长审核通过以后将显示");
|
|
|
}
|