diff --git a/persistence/tweet_queries.go b/persistence/tweet_queries.go index ee11e15..f328103 100644 --- a/persistence/tweet_queries.go +++ b/persistence/tweet_queries.go @@ -121,8 +121,8 @@ func (p Profile) GetTweetById(id scraper.TweetID) (scraper.Tweet, error) { stmt, err := db.Prepare(` select id, user_id, text, posted_at, num_likes, num_retweets, num_replies, num_quote_tweets, in_reply_to_id, quoted_tweet_id, - mentions, reply_mentions, hashtags, ifnull(space_id, ''), ifnull(tombstone_types.short_name, ""), is_stub, is_content_downloaded, - is_conversation_scraped, last_scraped_at + mentions, reply_mentions, hashtags, ifnull(space_id, ''), ifnull(tombstone_types.short_name, ""), is_stub, + is_content_downloaded, is_conversation_scraped, last_scraped_at from tweets left join tombstone_types on tweets.tombstone_type = tombstone_types.rowid where id = ? `) diff --git a/persistence/utils_test.go b/persistence/utils_test.go index ec9dffe..7c0463c 100644 --- a/persistence/utils_test.go +++ b/persistence/utils_test.go @@ -300,7 +300,7 @@ func create_dummy_retweet(tweet_id scraper.TweetID) scraper.Retweet { */ func create_space_from_id(id int) scraper.Space { return scraper.Space{ - ID: scraper.SpaceID(fmt.Sprintf("some_id_%d", id)), + ID: scraper.SpaceID(fmt.Sprintf("some_id_%d", id)), ShortUrl: fmt.Sprintf("short_url_%d", id), } }