https://openttc.com/t/topic/74
请看这个帖子。
我通过admin API,使用自动化脚本上传了一些图片。
但是只有少部分图片有灯箱效果。
图片的长和宽以及比例都是相同的。
AI 生成的摘要
昊毅_周 reported that images uploaded via the Admin API to a Discourse post lacked lightbox effects, despite having identical dimensions and aspect ratios. blake requested the API call details and suggested checking if rebuilding the HTML or manually creating posts via the UI reproduced the issue, aiming to determine if the problem was specific to the API or the platform. 昊毅_周 confirmed that rebuilding the HTML did not resolve the issue. Ultimately, 昊毅_周 stated that the issue was resolved by adding a 200ms delay between each API call in the automation script, which allowed all images to display correctly with lightbox effects.
@昊毅_周 您的问题解决了吗?
通过rebuild HTML还是无法解决问题。
我想应该是解决了。
我的自动化脚本一开始没有设置延迟,后来我给每次API调用增加了一个200ms的延迟。所有的图片都正常了。
谢谢!
