diff --git a/tildes/tildes/models/topic/topic.py b/tildes/tildes/models/topic/topic.py index 64adf3d..168ad2b 100644 --- a/tildes/tildes/models/topic/topic.py +++ b/tildes/tildes/models/topic/topic.py @@ -419,6 +419,8 @@ class Topic(DatabaseModel): if self.link and is_tweet(self.link): authors = self.get_content_metadata("authors") tweet = self.get_content_metadata("description") - return f"@{authors[0]}:
{tweet}" + + if authors and tweet: + return f"@{authors[0]}:
{tweet}" return None