diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index a231676..aee7128 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.4.563")] -[assembly: AssemblyFileVersion("3.0.4.563")] \ No newline at end of file +[assembly: AssemblyVersion("3.0.4.564")] +[assembly: AssemblyFileVersion("3.0.4.564")] \ No newline at end of file diff --git a/Core/Pages.cs b/Core/Pages.cs index a8dfc33..0789254 100644 --- a/Core/Pages.cs +++ b/Core/Pages.cs @@ -1410,8 +1410,7 @@ namespace ScrewTurn.Wiki { bool done = page.Provider.AddMessage(page, username, subject, dateTime, body, parent); if(done) { - SendEmailNotificationForMessage(page, Users.FindUser(username), - Tools.GetMessageIdForAnchor(dateTime), subject); + SendEmailNotificationForMessage(page, Users.FindUser(username), Tools.GetMessageIdForAnchor(dateTime), subject, dateTime); PageContent content = Content.GetPageContent(page, false); RecentChanges.AddChange(page.FullName, content.Title, subject, dateTime, username, Change.MessagePosted, ""); @@ -1427,7 +1426,8 @@ namespace ScrewTurn.Wiki { /// The author of the message. /// The message ID to be used for anchors. /// The message subject. - private static void SendEmailNotificationForMessage(PageInfo page, UserInfo author, string id, string subject) { + /// The message date/time. + private static void SendEmailNotificationForMessage(PageInfo page, UserInfo author, string id, string subject, DateTime dateTime) { if(page == null) return; PageContent content = Content.GetPageContent(page, false); @@ -1443,7 +1443,7 @@ namespace ScrewTurn.Wiki { EmailTools.AsyncSendMassEmail(recipients, Settings.SenderEmail, Settings.WikiTitle + " - " + title, body.Replace("##PAGE##", title).Replace("##USER##", author != null ? Users.GetDisplayName(author) : "anonymous").Replace("##DATETIME##", - Preferences.AlignWithServerTimezone(content.LastModified).ToString(Settings.DateTimeFormat)).Replace("##SUBJECT##", + Preferences.AlignWithServerTimezone(dateTime).ToString(Settings.DateTimeFormat)).Replace("##SUBJECT##", subject).Replace("##LINK##", Settings.MainUrl + Tools.UrlEncode(page.FullName) + Settings.PageExtension + "?Discuss=1#" + id).Replace("##WIKITITLE##", Settings.WikiTitle), false);