Make Document::remove_html static.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2021-07-12 23:39:00 +02:00
parent 2ad4b46551
commit 5275c1d9e3
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 3 deletions

View File

@ -233,7 +233,7 @@ void Document::parse_rss(const pt::ptree &tree)
} }
} }
string Document::remove_html(string html) const string Document::remove_html(string html)
{ {
html = mastodonpp::unescape_html(html); // Decode HTML entities. html = mastodonpp::unescape_html(html); // Decode HTML entities.

View File

@ -1,5 +1,5 @@
/* This file is part of mastorss. /* This file is part of mastorss.
* Copyright © 2019, 2020 tastytea <tastytea@tastytea.de> * Copyright © 2019-2021 tastytea <tastytea@tastytea.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -84,7 +84,7 @@ private:
*/ */
void download(const string &uri, bool temp_redirect = false); void download(const string &uri, bool temp_redirect = false);
void parse_rss(const pt::ptree &tree); void parse_rss(const pt::ptree &tree);
[[nodiscard]] string remove_html(string html) const; [[nodiscard]] static string remove_html(string html);
[[nodiscard]] static string [[nodiscard]] static string
extract_location(const curl_wrapper::answer &answer); extract_location(const curl_wrapper::answer &answer);
string add_hashtags(const string &text); string add_hashtags(const string &text);