リプライが送信されないバグ修正(#17) (#18)

#17

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: #18
このコミットはPull リクエスト #18 でマージされました.
このコミットが含まれているのは:
2025-12-03 22:48:57 +09:00
コミット 99a5dca5a3
2個のファイルの変更3行の追加4行の削除
+2 -3
ファイルの表示
@@ -10,7 +10,7 @@ from typing import Any, TypedDict
import atproto # type: ignore import atproto # type: ignore
import requests import requests
from atproto import Client # type: ignore from atproto import Client # type: ignore
from atproto_client.models import AppBskyEmbedExternal, AppBskyEmbedImages # type: ignore from atproto_client.models import AppBskyEmbedExternal, AppBskyEmbedImages, ComAtprotoRepoStrongRef # type: ignore
from atproto_client.models.app.bsky.feed.get_timeline import Response # type: ignore from atproto_client.models.app.bsky.feed.get_timeline import Response # type: ignore
from atproto_client.models.app.bsky.feed.post import ReplyRef # type: ignore from atproto_client.models.app.bsky.feed.post import ReplyRef # type: ignore
from requests.exceptions import Timeout from requests.exceptions import Timeout
@@ -102,8 +102,7 @@ async def answer (
if (not uri) or (not cid): if (not uri) or (not cid):
continue continue
sref = { 'uri': uri, 'cid': cid } strong_ref = ComAtprotoRepoStrongRef.Main (uri = uri, cid = cid)
strong_ref = atproto.models.create_strong_ref (sref) # type: ignore
reply_ref = ReplyRef (root = strong_ref, parent = strong_ref) reply_ref = ReplyRef (root = strong_ref, parent = strong_ref)
try: try:
client.post (answer.content[:250], reply_to = reply_ref) client.post (answer.content[:250], reply_to = reply_ref)
サブモジュール nizika_ai が更新されました: 5dae2ae038...1f75763038