Notification action URIs

This commit is contained in:
2025-06-14 16:57:23 +08:00
parent e7942fc687
commit c8b1c1ba55
5 changed files with 13 additions and 5 deletions

View File

@ -151,7 +151,8 @@ public class PostService(
null,
string.IsNullOrWhiteSpace(post.Title)
? localizer["PostReplyBody", sender.Nick, content]
: localizer["PostReplyContentBody", sender.Nick, post.Title, content]
: localizer["PostReplyContentBody", sender.Nick, post.Title, content],
actionUri: $"/posts/{post.Id}"
);
}
}
@ -324,7 +325,8 @@ public class PostService(
string.IsNullOrWhiteSpace(post.Title)
? localizer["PostReactBody", sender.Nick, reaction.Symbol]
: localizer["PostReactContentBody", sender.Nick, reaction.Symbol,
post.Title]
post.Title],
actionUri: $"/posts/{post.Id}"
);
}
}