summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-02-04 23:33:00 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-02-04 23:33:00 +0100
commit1dacf327e1164cd3040407cd25716ac159d0e22e (patch)
tree08a5a617a396e52e63601ebff2eb663923bd3eb4 /src
parentShow widgets as links (diff)
downloadnheko-1dacf327e1164cd3040407cd25716ac159d0e22e.tar.xz
Fix avatar url conversion for widgets
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index d1613d5b..6fc10142 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -2248,7 +2248,7 @@ TimelineModel::widgetLinks() const
     QStringList list;
 
     auto user  = utils::localUser();
-    auto av    = QUrl::toPercentEncoding(avatarUrl(user));
+    auto av    = QUrl::toPercentEncoding(QString::fromStdString(http::client()->mxc_to_download_url(avatarUrl(user).toStdString())));
     auto disp  = QUrl::toPercentEncoding(displayName(user));
     auto theme = UserSettings::instance()->theme();
     if (theme == QStringLiteral("system"))