mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
minor fix
This commit is contained in:
+1
-1
@@ -151,4 +151,4 @@ class ProcessBsky:
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
case _:
|
case _:
|
||||||
raise NotImplementedError(f"Unknown Bsky embed type: {embed['type']}")
|
raise NotImplementedError(f"Unknown Bsky embed type: {embed['$type']}")
|
||||||
|
|||||||
+1
-1
@@ -136,7 +136,7 @@ class ProcessTweet:
|
|||||||
@property
|
@property
|
||||||
def _tweet_text(self) -> str:
|
def _tweet_text(self) -> str:
|
||||||
match = x_tco_url.search(self._tweet['text'])
|
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
|
@property
|
||||||
def _tweet_media(self) -> list[TweetMedia]:
|
def _tweet_media(self) -> list[TweetMedia]:
|
||||||
|
|||||||
Reference in New Issue
Block a user