diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-12-14 08:18:24 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-12-14 08:18:24 +0100 |
commit | 88fed1806e56181a9161c20bcd93cd06d52a5533 (patch) | |
tree | 99f5d1ed9901c0de53b0f07b7f34ae9127a4db70 /src/plugins | |
parent | 484571d6f5bc71626f320b4dc06b43331d7f1240 (diff) |
Attempt to fix spastic body when using embedded items and loading them in render callback, fix gif play next on 4chan.. test
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Matrix.cpp | 1 | ||||
-rw-r--r-- | src/plugins/Youtube.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index a39c247..44dfa3a 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -2623,6 +2623,7 @@ namespace QuickMedia { html_escape_sequences(formatted_body); html_escape_sequences(related_to_body); // TODO: Add keybind to navigate to the reply message, which would also depend on this formatting. + // Note: user id and event id is not url escaped here on purpose, because that messes up riot.im replies for certain user ids... return "<mx-reply>" "<blockquote>" "<a href=\"https://matrix.to/#/" + room->id + "/" + message->event_id + "?via=" + extract_homeserver_from_room_id(room->id) + "\">In reply to</a>" diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index 89058f5..96d767f 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -154,6 +154,7 @@ namespace QuickMedia { if(description_snippet) { if(!desc.empty()) desc += '\n'; + desc += '\n'; desc += description_snippet.value(); } body_item->set_description(std::move(desc)); @@ -211,6 +212,7 @@ namespace QuickMedia { if(description) { if(!desc.empty()) desc += '\n'; + desc += '\n'; desc += description.value(); } body_item->set_description(std::move(desc)); |