Bugfix: Use the right mastodon-cpp object.
All checks were successful
the build was successful

This commit is contained in:
tastytea 2019-04-21 06:13:51 +02:00
parent 64f78e0300
commit 7baaae1abc
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -82,12 +82,8 @@ void Listener::read_config()
void Listener::start() void Listener::start()
{ {
Easy::API masto(_instance, _access_token);
_running = true; _running = true;
_masto->get_stream(API::v1::streaming_user, _ptr, _stream);
masto.set_useragent(string("expandurl-mastodon/") + global::version);
set_proxy(masto);
masto.get_stream(Mastodon::API::v1::streaming_user, _ptr, _stream);
syslog(LOG_NOTICE, "Connecting to %s ...", _instance.c_str()); syslog(LOG_NOTICE, "Connecting to %s ...", _instance.c_str());
} }