Skip to content

Commit

Permalink
MentionNotification
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed May 30, 2024
1 parent 9d1c6ae commit 8ec4f27
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

namespace Moonglade.Email.Client;

public record PingbackNotification(
public record MentionNotification(
string TargetPostTitle,
string Domain,
string SourceIp,
string SourceUrl,
string SourceTitle) : INotification;

public class PingbackNotificationHandler(IMoongladeEmailClient moongladeEmailClient, IBlogConfig blogConfig) : INotificationHandler<PingbackNotification>
public class MentionNotificationHandler(IMoongladeEmailClient moongladeEmailClient, IBlogConfig blogConfig) : INotificationHandler<MentionNotification>
{
public async Task Handle(PingbackNotification notification, CancellationToken ct)
public async Task Handle(MentionNotification notification, CancellationToken ct)
{
var dl = new[] { blogConfig.GeneralSettings.OwnerEmail };
await moongladeEmailClient.SendEmail(MailMesageTypes.BeingPinged, dl, notification);
Expand Down

0 comments on commit 8ec4f27

Please sign in to comment.