Compare commits
2 commits
9efafc74cd
...
9cd4c3a98c
Author | SHA1 | Date | |
---|---|---|---|
9cd4c3a98c | |||
6576d7f9bd |
2 changed files with 5 additions and 1 deletions
|
@ -575,7 +575,9 @@ async function processUrl(msg, url, spoiler = false) {
|
||||||
let desc = "";
|
let desc = "";
|
||||||
let MAX_LENGTH = 3999;
|
let MAX_LENGTH = 3999;
|
||||||
if ((cw != "" || sensitive) && images.length == 0 && videos.length == 0 && audios.length == 0) {
|
if ((cw != "" || sensitive) && images.length == 0 && videos.length == 0 && audios.length == 0) {
|
||||||
desc += "||" + content + "||";
|
const ors = content.split("||");
|
||||||
|
desc += `||${content.replaceAll("||", "|\u200b|")}||`;
|
||||||
|
MAX_LENGTH -= ors.length - 1;
|
||||||
MAX_LENGTH -= 4;
|
MAX_LENGTH -= 4;
|
||||||
|
|
||||||
if (cw != "") {
|
if (cw != "") {
|
||||||
|
|
|
@ -63,6 +63,8 @@ module.exports.ApplicationFlags.EMBEDDED_FIRST_PARTY = 1 << 20; //
|
||||||
module.exports.ApplicationFlags.ACTIVE = 1 << 24; // prettier-ignore
|
module.exports.ApplicationFlags.ACTIVE = 1 << 24; // prettier-ignore
|
||||||
module.exports.ApplicationFlags.IFRAME_MODAL = 1 << 26; // prettier-ignore
|
module.exports.ApplicationFlags.IFRAME_MODAL = 1 << 26; // prettier-ignore
|
||||||
module.exports.ApplicationFlags.SOCIAL_LAYER_INTEGRATION = 1 << 27; // prettier-ignore
|
module.exports.ApplicationFlags.SOCIAL_LAYER_INTEGRATION = 1 << 27; // prettier-ignore
|
||||||
|
module.exports.ApplicationFlags.PROMOTED = 1 << 29; // prettier-ignore
|
||||||
|
module.exports.ApplicationFlags.PARTNER = 1 << 30; // prettier-ignore
|
||||||
|
|
||||||
module.exports.ApplicationTypes = ["Normal", "Game", "Music", "Ticketed Event", "Creator Monetization"];
|
module.exports.ApplicationTypes = ["Normal", "Game", "Music", "Ticketed Event", "Creator Monetization"];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue