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 @@ -
- - -
-
- -
<% for (let index = posts.length - 1; index >= 0; index--) { %> <% if (posts[index]["deleted"] != true) { %> @@ -24,13 +17,6 @@ <% } %> <% } %>
-
- - -
-
- -
diff --git a/views/posts/timeline.ejs b/views/posts/timeline.ejs index a2959c6..58a8b15 100644 --- a/views/posts/timeline.ejs +++ b/views/posts/timeline.ejs @@ -15,8 +15,12 @@
- <%= user.prettyname %> + <%= user.prettyname %> + - + + <%= locale.edit_account %> + - <%= func.unix_time_to_date_format(post.pubdate) %>