aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 2ac6f90..7cbe2c4 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1843,6 +1843,7 @@ namespace QuickMedia {
}
auto body = create_body();
+ body->title_mark_urls = true;
if(include_reverse_image_search && !body_item->url.empty() && !body_item->thumbnail_url.empty()) {
std::string image_url = body_item->url;
@@ -7536,21 +7537,12 @@ namespace QuickMedia {
auto matrix_invites_page = std::make_unique<MatrixInvitesPage>(this, matrix, invites_body.get());
BodyItems room_dir_body_items;
+
add_body_item_unique_title(room_dir_body_items, matrix->get_homeserver_domain());
- add_body_item_unique_title(room_dir_body_items, "midov.pl");
- add_body_item_unique_title(room_dir_body_items, "matrix.org");
- add_body_item_unique_title(room_dir_body_items, "kde.org");
- add_body_item_unique_title(room_dir_body_items, "librem.one");
- add_body_item_unique_title(room_dir_body_items, "maunium.net");
- add_body_item_unique_title(room_dir_body_items, "halogen.city");
- add_body_item_unique_title(room_dir_body_items, "gnome.org");
- add_body_item_unique_title(room_dir_body_items, "shivering-isles.com");
- add_body_item_unique_title(room_dir_body_items, "nerdsin.space");
- add_body_item_unique_title(room_dir_body_items, "glowers.club");
- add_body_item_unique_title(room_dir_body_items, "privacytools.io");
- add_body_item_unique_title(room_dir_body_items, "linuxdelta.com");
- add_body_item_unique_title(room_dir_body_items, "tchncs.de");
- add_body_item_unique_title(room_dir_body_items, "jupiterbroadcasting.com");
+ for(const std::string &known_homeserver : get_config().matrix.known_homeservers) {
+ add_body_item_unique_title(room_dir_body_items, known_homeserver);
+ }
+
auto room_directory_body = create_body();
room_directory_body->set_items(std::move(room_dir_body_items));
auto matrix_room_directory_page = std::make_unique<MatrixRoomDirectoryPage>(this, matrix);