From 2565ff8d1513bec7910521f3b333770c150dfdaf Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 14 Jul 2018 10:36:34 +0200 Subject: [PATCH] Renamed send_toot to send_post, made send_toot an alias for send_post --- CMakeLists.txt | 2 +- src/easy/easy.hpp | 7 +++++++ src/easy/simple_calls.cpp | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe449ab..cee63a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastodon-cpp - VERSION 0.18.0 + VERSION 0.18.1 LANGUAGES CXX ) diff --git a/src/easy/easy.hpp b/src/easy/easy.hpp index 5dda146..8c23bd9 100644 --- a/src/easy/easy.hpp +++ b/src/easy/easy.hpp @@ -285,6 +285,13 @@ public: * * @return The new Easy::Status * + * @since 0.18.1 + */ + const Status send_post(const Status &status, uint_fast16_t error = 0); + + /*! + * @brief Alias for send_post() + * * @since 0.17.0 */ const Status send_toot(const Status &status, uint_fast16_t error = 0); diff --git a/src/easy/simple_calls.cpp b/src/easy/simple_calls.cpp index 0ee0f89..ae616f4 100644 --- a/src/easy/simple_calls.cpp +++ b/src/easy/simple_calls.cpp @@ -22,6 +22,11 @@ using namespace Mastodon; const Easy::Status Easy::send_toot(const Status &status, uint_fast16_t error) +{ + return send_post(status, error); +} + +const Easy::Status Easy::send_post(const Status &status, uint_fast16_t error) { API::parametermap parameters; string answer;