Share the post via image

This commit is contained in:
2024-12-12 23:51:27 +08:00
parent bb5fe9c380
commit 240ad7dc7e
7 changed files with 285 additions and 51 deletions

View File

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