fedimbed: fix cw check try 3
This commit is contained in:
parent
d832c693cc
commit
4b6ebea322
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ async function processUrl(msg, url) {
|
||||||
|
|
||||||
let desc = "";
|
let desc = "";
|
||||||
let MAX_LENGTH = 3999;
|
let MAX_LENGTH = 3999;
|
||||||
if (cw != "" && (images.length == 0 || videos.length == 0)) {
|
if (cw != "" && (images.length == 0 && videos.length == 0 && audios.length == 0)) {
|
||||||
desc += "\u26a0 " + cw + "\n\n||" + content + "||";
|
desc += "\u26a0 " + cw + "\n\n||" + content + "||";
|
||||||
MAX_LENGTH -= 8 - cw.length;
|
MAX_LENGTH -= 8 - cw.length;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue