♻️ refactor client of scheduler_config

This commit is contained in:
felinae98
2024-05-28 20:59:39 +08:00
parent c21b24b385
commit 2fc11a9653
30 changed files with 185 additions and 143 deletions
+2 -1
View File
@@ -54,9 +54,10 @@ class Ht2iTheme(Theme):
msgs.append(Text("\n".join(urls)))
if post.images:
client = await post.platform.ctx.get_client_for_static()
pics = post.images
if is_pics_mergable(pics):
pics = await pic_merge(list(pics), post.platform.client)
pics = await pic_merge(list(pics), client)
msgs.extend(map(Image, pics))
return msgs