🐛 Fix embeddable parsing

This commit is contained in:
2025-08-06 17:55:30 +08:00
parent 1105d6f11e
commit 4f2e18ca27
4 changed files with 11 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ using System.Text.RegularExpressions;
using DysonNetwork.Shared.Data;
using DysonNetwork.Shared.Proto;
using DysonNetwork.Sphere.Chat.Realtime;
using DysonNetwork.Sphere.WebReader;
using Microsoft.EntityFrameworkCore;
using NodaTime;
@@ -131,7 +132,7 @@ public partial class ChatService(
// Preview the link
var linkEmbed = await webReader.GetLinkPreviewAsync(url);
embeds.Add(linkEmbed.ToDictionary());
embeds.Add(EmbeddableBase.ToDictionary(linkEmbed));
processedLinks++;
}
catch