mirror of
https://github.com/thelounge/thelounge
synced 2025-03-02 14:17:13 +00:00
Do not prefetch URLs unless they are messages or /me actions
ACTION & MESSAGE type messages should be prefetched by default
This commit is contained in:
parent
b67836ffe0
commit
36893c6d7c
1 changed files with 4 additions and 1 deletions
|
@ -91,6 +91,9 @@ module.exports = function(irc, network) {
|
||||||
});
|
});
|
||||||
chan.pushMessage(client, msg, !self);
|
chan.pushMessage(client, msg, !self);
|
||||||
|
|
||||||
LinkPrefetch(client, chan, msg);
|
// No prefetch URLs unless are simple MESSAGE or ACTION types
|
||||||
|
if ([Msg.Type.MESSAGE, Msg.Type.ACTION].indexOf(data.type) !== -1) {
|
||||||
|
LinkPrefetch(client, chan, msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue