You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BlogEngine/BlogEngine.Core/Post.cs
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
usingSystem.Linq;
9
9
usingSystem.Net.Mail;
10
10
usingSystem.Text;
11
+
usingSystem.Text.RegularExpressions;
11
12
usingSystem.Web;
12
13
13
14
usingBlogEngine.Core.Data.Models;
@@ -694,28 +695,27 @@ public bool IsVisibleToPublic
694
695
}
695
696
696
697
/// <summary>
697
-
/// URL of the first image in the post, if any
698
+
/// URL of the first image in the post, if any.
699
+
/// If there's no first image, returns the URL to "images/defaultImg.jpg" in the current theme used in the blog
698
700
/// </summary>
699
701
publicstringFirstImgSrc
700
702
{
701
703
get
702
704
{
703
-
intidx=Content.IndexOf("<img src="proxy.php?url=https%3A%2F%2Fgithub.com%2Ftestingkaspro%2FBlogEngine.NET%2Fcommit%2F%3C%2Fspan%3E%3Cspan+class%3D"pl-kos x x-last">);
0 commit comments