Bugfix: Allow for more than 65535 minutes of inactivity.

This commit is contained in:
tastytea 2018-11-19 02:37:55 +01:00
parent e99ca72376
commit 6aee23d646
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastobotmon
VERSION 0.3.12
VERSION 0.3.13
LANGUAGES CXX)
include(GNUInstallDirs)

View File

@ -40,7 +40,7 @@ const void Account::set_minutes(uint16_t minutes)
_minutes = minutes;
}
const uint16_t Account::get_minutes() const
const uint64_t Account::get_minutes() const
{
return _minutes;
}

View File

@ -36,7 +36,7 @@ class Account : public Mastodon::Easy
public:
explicit Account(const string &instance, const string &access_token);
const void set_minutes(uint16_t minutes);
const uint16_t get_minutes() const;
const uint64_t get_minutes() const;
const uint16_t get_mentions(string &answer);
const void set_last_mention_id(const std::uint64_t &id);