[FA-misc] Refresh button, UI mostly gold
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user