Fetch max 1 link per message
This commit is contained in:
parent
4fcd21ccff
commit
67f6e526f2
@ -652,6 +652,9 @@ button {
|
||||
}
|
||||
#chat .toggle-content .body {
|
||||
color: #999;
|
||||
max-width: 460px;
|
||||
word-break: normal;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
#chat .toggle-content.show {
|
||||
display: inline-block !important;
|
||||
|
@ -41,10 +41,9 @@ module.exports = function(irc, network) {
|
||||
msg: msg
|
||||
});
|
||||
|
||||
_.each(links, function(url) {
|
||||
fetch(url, function(res) {
|
||||
parse(msg, url, res, client);
|
||||
});
|
||||
var link = links[0];
|
||||
fetch(link, function(res) {
|
||||
parse(msg, link, res, client);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user