diff --git a/package.json b/package.json
index 5b8cbaf..687685e 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"express": "^5.2.1",
"express-router": "^0.0.1",
"markdown-it": "^14.1.0",
- "mysql": "^2.18.1",
+ "mssql": "^12.2.0",
"package.json": "^2.0.1"
}
}
diff --git a/src/functions.js b/src/functions.js
index cdcb3f9..54c3e40 100644
--- a/src/functions.js
+++ b/src/functions.js
@@ -59,6 +59,7 @@ export function unix_time_to_atom_date(unix_time)
// returns: string
export function render_tags(tags)
{
+ tags = tags.filter((item, index) => tags.indexOf(item) === index) // Remove duplicate tags
let string = "" // Initialises the string
if (tags.length == 1 && tags[0] == "")
{
@@ -135,6 +136,7 @@ export function render_md(content)
typographer: true,
quotes: locale.quotes,
})
+ .disable('image');
return md.render(content)
};
diff --git a/views/pages/timeline.ejs b/views/pages/timeline.ejs
index 52a04fb..9577879 100644
--- a/views/pages/timeline.ejs
+++ b/views/pages/timeline.ejs
@@ -10,13 +10,6 @@