summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortastytea2020-01-06 09:31:05 +0100
committertastytea2020-01-06 09:31:05 +0100
commit0638f8fe9a8a1f0cd86e647d8452c9369ebc41de (patch)
treef0064ccd0c1494727a7f675ccb983f46ec63fa29 /include
parent6663cca653496eddb714aa0a32b134e93e74eb62 (diff)
downloadmastodonpp-0638f8fe9a8a1f0cd86e647d8452c9369ebc41de.tar
mastodonpp-0638f8fe9a8a1f0cd86e647d8452c9369ebc41de.tar.gz
mastodonpp-0638f8fe9a8a1f0cd86e647d8452c9369ebc41de.zip
Query max_toot_chars the first time get_max_chars() is called.
Diffstat (limited to 'include')
-rw-r--r--include/instance.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/instance.hpp b/include/instance.hpp
index 17425cd..914a470 100644
--- a/include/instance.hpp
+++ b/include/instance.hpp
@@ -94,10 +94,7 @@ public:
* @since 0.1.0
*/
[[nodiscard]]
- inline uint64_t get_max_chars() const
- {
- return _max_chars;
- }
+ uint64_t get_max_chars();
private:
const string _hostname;