[FA-misc] Refresh button, UI mostly gold
All checks were successful
CI / build-backend (pull_request) Successful in 1m45s
CI / build-frontend (pull_request) Successful in 39s

This commit is contained in:
gamer147
2025-12-09 09:11:39 -05:00
parent 81e4e88ad4
commit e70c39ea75
12 changed files with 476 additions and 26 deletions

View File

@@ -350,6 +350,20 @@ public class NovelUpdateService
});
}
// Publish chapter pull events for chapters without body content
var chaptersNeedingPull = novel.Chapters
.Where(c => c.Body?.Texts == null || !c.Body.Texts.Any())
.ToList();
foreach (var chapter in chaptersNeedingPull)
{
await _eventBus.Publish(new ChapterPullRequestedEvent
{
NovelId = novel.Id,
ChapterNumber = chapter.Order
});
}
return novel;
}
@@ -434,6 +448,7 @@ public class NovelUpdateService
if (match != null)
{
match.Attributes["src"].Value = newUrl;
bodyText.Text = chapterDoc.DocumentNode.OuterHtml;
}
}
}