Fix empty widgets still being shown
This commit is contained in:
parent
57f505c486
commit
130e1b43fb
@ -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 New Issue
Block a user