minor fix

This commit is contained in:
2024-11-12 17:12:47 +08:00
parent 6c53a1429d
commit 282cf46d58
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -151,4 +151,4 @@ class ProcessBsky:
)
]
case _:
raise NotImplementedError(f"Unknown Bsky embed type: {embed['type']}")
raise NotImplementedError(f"Unknown Bsky embed type: {embed['$type']}")
+1 -1
View File
@@ -136,7 +136,7 @@ class ProcessTweet:
@property
def _tweet_text(self) -> str:
match = x_tco_url.search(self._tweet['text'])
return self._tweet['text'][:match.start()].strip(" ") if match else self._tweet['text']
return self._tweet['text'][:match.start()].strip() if match else self._tweet['text']
@property
def _tweet_media(self) -> list[TweetMedia]: