diff options
Diffstat (limited to 'examples/example05_update_notification_settings.cpp')
-rw-r--r-- | examples/example05_update_notification_settings.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/example05_update_notification_settings.cpp b/examples/example05_update_notification_settings.cpp index f4c1fca..08f5cf8 100644 --- a/examples/example05_update_notification_settings.cpp +++ b/examples/example05_update_notification_settings.cpp @@ -16,7 +16,7 @@ // Update notification settings (/api/pleroma/notification_settings). #if __has_include("mastodonpp.hpp") -# include "mastodonpp.hpp" // We're building mastodonpp. +# include "mastodonpp.hpp" // We're building mastodonpp. #else # include <mastodonpp/mastodonpp.hpp> // We're building outside mastodonpp. #endif @@ -27,11 +27,11 @@ #include <vector> namespace masto = mastodonpp; -using std::cout; using std::cerr; +using std::cout; using std::endl; -using std::to_string; using std::string_view; +using std::to_string; using std::vector; int main(int argc, char *argv[]) @@ -50,14 +50,14 @@ int main(int argc, char *argv[]) masto::Connection connection{instance}; // Update the settings. - const auto answer{connection.put( - masto::API::pleroma::notification_settings, - { - {"followers", "true"}, - {"follows", "true"}, - {"remote", "true"}, - {"local", "true"}, - })}; + const auto answer{ + connection.put(masto::API::pleroma::notification_settings, + { + {"followers", "true"}, + {"follows", "true"}, + {"remote", "true"}, + {"local", "true"}, + })}; if (answer) { cout << answer << endl; |