This commit is contained in:
parent
cf3f13fff1
commit
cb31080a57
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastorss
|
||||
VERSION 0.7.0
|
||||
VERSION 0.7.1
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -96,15 +96,15 @@ int main(int argc, char *argv[])
|
|||
continue;
|
||||
}
|
||||
|
||||
string answer;
|
||||
Mastodon::Easy::Status answer;
|
||||
Mastodon::Easy masto(instance, access_token);
|
||||
|
||||
masto.send_post(*rit);
|
||||
answer = masto.send_post(*rit, ret);
|
||||
|
||||
if (ret != 0)
|
||||
{
|
||||
std::cerr << "Error code: " << ret << '\n';
|
||||
std::cerr << answer << '\n';
|
||||
std::cerr << answer.to_object().asString() << '\n';
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user