Preload post quoted content

This commit is contained in:
2024-12-12 00:48:03 +08:00
parent 018441ea0b
commit 717bccbf3f
2 changed files with 32 additions and 8 deletions

View File

@ -23,6 +23,11 @@ class SnPostContentProvider {
if (out[i].body['thumbnail'] != null) {
rids.add(out[i].body['thumbnail']);
}
if (out[i].repostTo != null) {
out[i] = out[i].copyWith(
repostTo: await _preloadRelatedDataSingle(out[i].repostTo!),
);
}
}
final attachments = await _attach.getMultiple(rids.toList());