rename variable
This commit is contained in:
parent
2893434fbd
commit
7f0dc34baf
@ -83,8 +83,8 @@ hide_replies: false,
|
|||||||
// Hide preview for links. Default: don't hide
|
// Hide preview for links. Default: don't hide
|
||||||
hide_preview_link: false,
|
hide_preview_link: false,
|
||||||
|
|
||||||
// Show custom emojis available on the server. Default: show them
|
// Hide custom emojis available on the server. Default: don't hide
|
||||||
show_emojos: true,
|
hide_emojos: false,
|
||||||
|
|
||||||
// Converts Markdown symbol ">" at the beginning of a paragraph into a blockquote HTML tag. Default: don't apply
|
// Converts Markdown symbol ">" at the beginning of a paragraph into a blockquote HTML tag. Default: don't apply
|
||||||
markdown_blockquote: false,
|
markdown_blockquote: false,
|
||||||
|
@ -46,8 +46,8 @@ window.addEventListener("load", () => {
|
|||||||
// Hide preview card if toot contains a link, photo or video from a URL. Default: don't hide
|
// Hide preview card if toot contains a link, photo or video from a URL. Default: don't hide
|
||||||
hide_preview_link: false,
|
hide_preview_link: false,
|
||||||
|
|
||||||
// Show custom emojis available on the server. Default: show them
|
// Hide custom emojis available on the server. Default: don't hide
|
||||||
show_emojos: true,
|
hide_emojos: false,
|
||||||
|
|
||||||
// Converts Markdown symbol ">" at the beginning of a paragraph into a blockquote HTML tag. Ddefault: don't apply
|
// Converts Markdown symbol ">" at the beginning of a paragraph into a blockquote HTML tag. Ddefault: don't apply
|
||||||
markdown_blockquote: false,
|
markdown_blockquote: false,
|
||||||
@ -85,8 +85,8 @@ const MastodonApi = function (params_) {
|
|||||||
typeof params_.hide_preview_link !== "undefined"
|
typeof params_.hide_preview_link !== "undefined"
|
||||||
? params_.hide_preview_link
|
? params_.hide_preview_link
|
||||||
: false;
|
: false;
|
||||||
this.SHOW_EMOJOS =
|
this.HIDE_EMOJOS =
|
||||||
typeof params_.show_emojos !== "undefined" ? params_.show_emojos : true;
|
typeof params_.hide_emojos !== "undefined" ? params_.hide_emojos : false;
|
||||||
this.MARKDOWN_BLOCKQUOTE =
|
this.MARKDOWN_BLOCKQUOTE =
|
||||||
typeof params_.markdown_blockquote !== "undefined"
|
typeof params_.markdown_blockquote !== "undefined"
|
||||||
? params_.markdown_blockquote
|
? params_.markdown_blockquote
|
||||||
@ -299,7 +299,7 @@ MastodonApi.prototype.getTimelineData = async function () {
|
|||||||
} else if (this.TIMELINE_TYPE === "local") {
|
} else if (this.TIMELINE_TYPE === "local") {
|
||||||
urls.timeline = `${this.INSTANCE_URL}/api/v1/timelines/public?local=true&limit=${this.TOOTS_LIMIT}`;
|
urls.timeline = `${this.INSTANCE_URL}/api/v1/timelines/public?local=true&limit=${this.TOOTS_LIMIT}`;
|
||||||
}
|
}
|
||||||
if (this.SHOW_EMOJOS) {
|
if (!this.HIDE_EMOJOS) {
|
||||||
urls.emojos = this.INSTANCE_URL + "/api/v1/custom_emojis";
|
urls.emojos = this.INSTANCE_URL + "/api/v1/custom_emojis";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -545,7 +545,7 @@ MastodonApi.prototype.formatTootText = function (c) {
|
|||||||
content = this.addTarget2hashtagMention(content);
|
content = this.addTarget2hashtagMention(content);
|
||||||
|
|
||||||
// Convert emojos shortcode into images
|
// Convert emojos shortcode into images
|
||||||
if (this.SHOW_EMOJOS) {
|
if (!this.HIDE_EMOJOS) {
|
||||||
content = this.showEmojos(content, this.FETCHED_DATA.emojos);
|
content = this.showEmojos(content, this.FETCHED_DATA.emojos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user