Skip to content

Commit

Permalink
Fixed Tweet.full_text
Browse files Browse the repository at this point in the history
  • Loading branch information
d60 committed Apr 29, 2024
1 parent 7db0851 commit 11245a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion twikit/tweet.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(self, client: Client, data: dict, user: User = None) -> None:
self.retweeted_tweet = None

note_tweet_results = find_dict(data, 'note_tweet_results')
self.full_text: str | None = None
self.full_text: str = self.text
if note_tweet_results:
text_list = find_dict(note_tweet_results, 'text')
if text_list:
Expand Down
2 changes: 1 addition & 1 deletion twikit/twikit_async/tweet.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def __init__(self, client: Client, data: dict, user: User = None) -> None:
self.retweeted_tweet = None

note_tweet_results = find_dict(data, 'note_tweet_results')
self.full_text: str | None = None
self.full_text: str = self.text
if note_tweet_results:
text_list = find_dict(note_tweet_results, 'text')
if text_list:
Expand Down

0 comments on commit 11245a3

Please sign in to comment.