From 7baaae1abce72b5efc668be0ae5ada9081965e2f Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 21 Apr 2019 06:13:51 +0200 Subject: [PATCH] Bugfix: Use the right mastodon-cpp object. --- src/masto.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/masto.cpp b/src/masto.cpp index 8b716c9..e24cdbe 100644 --- a/src/masto.cpp +++ b/src/masto.cpp @@ -82,12 +82,8 @@ void Listener::read_config() void Listener::start() { - Easy::API masto(_instance, _access_token); _running = true; - - masto.set_useragent(string("expandurl-mastodon/") + global::version); - set_proxy(masto); - masto.get_stream(Mastodon::API::v1::streaming_user, _ptr, _stream); + _masto->get_stream(API::v1::streaming_user, _ptr, _stream); syslog(LOG_NOTICE, "Connecting to %s ...", _instance.c_str()); }