Features/codeprojects/disable commit checks (#30)
* hard disable for checking commits till I can debug it more * New HtmlCode method added
This commit is contained in:
parent
70440aa3f5
commit
39bf92dd53
@ -68,7 +68,7 @@ public class CodeProjectWatcherJob
|
||||
foreach (var source in sources)
|
||||
{
|
||||
items.AddRange(CheckForReleases(source));
|
||||
items.AddRange(CheckForCommits(source));
|
||||
//items.AddRange(CheckForCommits(source));
|
||||
}
|
||||
|
||||
foreach (var item in items)
|
||||
|
@ -157,7 +157,7 @@ public class DiscordNotificationJob
|
||||
{
|
||||
Title = article.Title,
|
||||
Color = DiscordMessageEmbedColors.Red,
|
||||
Description = article.Description,
|
||||
Description = MessageValidation.ConvertHtmlCodes(article.Description),
|
||||
Author = new DiscordMessageEmbedAuthor
|
||||
{
|
||||
Name = article.AuthorName,
|
||||
|
@ -11,7 +11,7 @@ public class MessageValidation
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static bool IsEmbedFooterValid(DiscordMessageEmbed[] embeds)
|
||||
{
|
||||
if (embeds.Count() == 0)
|
||||
@ -43,6 +43,12 @@ public class MessageValidation
|
||||
return true;
|
||||
}
|
||||
|
||||
public static string ConvertHtmlCodes(string message)
|
||||
{
|
||||
message = message.Replace("'", "'");
|
||||
return message;
|
||||
}
|
||||
|
||||
public static bool IsEmbedAuthorValid(DiscordMessageEmbedAuthor author)
|
||||
{
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user