blob: ac05f803755428ae26a3026b04d4acc6985b7084 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include "../../plugins/ImageBoard.hpp"
namespace QuickMedia {
BodyItems ImageBoardThreadPage::get_related_media(const std::string &url) {
BodyItems body_items;
auto it = std::find(cached_media_urls.begin(), cached_media_urls.end(), url);
if(it == cached_media_urls.end())
return body_items;
++it;
for(; it != cached_media_urls.end(); ++it) {
auto body_item = BodyItem::create("");
body_item->url = *it;
body_items.push_back(std::move(body_item));
}
return body_items;
}
PluginResult ImageBoardThreadPage::login(const std::string &token, const std::string &pin, std::string &response_msg) {
(void)token;
(void)pin;
response_msg = "Login is not supported on this image board";
return PluginResult::ERR;
}
const std::string& ImageBoardThreadPage::get_pass_id() {
static std::string empty_str;
return empty_str;
}
}
|