:drunk: Write shit code trying to split up the Auth (WIP)

This commit is contained in:
2025-07-06 12:58:18 +08:00
parent 5757526ea5
commit 6a3d04af3d
224 changed files with 1889 additions and 36885 deletions

View File

@ -1,4 +1,4 @@
using DysonNetwork.Sphere.Account;
using DysonNetwork.Common.Services;
using DysonNetwork.Sphere.Localization;
using DysonNetwork.Sphere.Post;
using DysonNetwork.Sphere.Storage;
@ -47,7 +47,7 @@ public class PublisherSubscriptionService(
/// </summary>
/// <param name="post">The new post</param>
/// <returns>The number of subscribers notified</returns>
public async Task<int> NotifySubscriberPost(Post.Post post)
public async Task<int> NotifySubscriberPost(Common.Models.Post post)
{
var subscribers = await db.PublisherSubscriptions
.Include(p => p.Account)
@ -73,9 +73,9 @@ public class PublisherSubscriptionService(
{
try
{
AccountService.SetCultureInfo(subscription.Account);
// AccountService.SetCultureInfo(subscription.Account);
await nty.SendNotification(
subscription.Account,
subscription.AccountId,
"posts.new",
localizer["PostSubscriptionTitle", post.Publisher.Name, title],
null,