fix cmake config

This commit is contained in:
keita
2021-10-07 23:37:31 +09:00
parent 5aed635d54
commit 9551f7280b
5 changed files with 11 additions and 4 deletions
+3 -1
View File
@@ -10,8 +10,10 @@ Tweet Tweet::parse(const std::string& _json) {
tweet.createdAt(j["created_at"]);
tweet.text(j["text"]);
tweet.source(j["source"]);
if(j.contains("user")){
tweet.user(CocoaTweet::API::Model::User(j["user"].dump()));
}
tweet.user(CocoaTweet::API::Model::User(j["user"].dump()));
return tweet;
}