mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix empty widgets still being shown
This commit is contained in:
parent
57f505c486
commit
130e1b43fb
1 changed files with 4 additions and 0 deletions
|
@ -2795,6 +2795,10 @@ TimelineModel::widgetLinks() const
|
|||
list.reserve(evs.size());
|
||||
for (const auto &p : evs) {
|
||||
auto url = QString::fromStdString(p.content.url);
|
||||
|
||||
if (url.isEmpty())
|
||||
continue;
|
||||
|
||||
for (const auto &[k, v] : p.content.data)
|
||||
url.replace("$" + QString::fromStdString(k),
|
||||
QUrl::toPercentEncoding(QString::fromStdString(v)));
|
||||
|
|
Loading…
Reference in a new issue