Browse Source

logs-content: Added exception for annotations in multipart post detection.

master 1.4.1
Gisle Aune 5 years ago
parent
commit
6fca626ea2
  1. 2
      marko/page/logs-content/components/post/component.js

2
marko/page/logs-content/components/post/component.js

@ -49,7 +49,7 @@ module.exports = class {
} }
const timediff = Date.parse(input.post.time) - Date.parse(input.prev.time) const timediff = Date.parse(input.post.time) - Date.parse(input.prev.time)
this.state.multipart = (input.post.nick == input.prev.nick && input.prev.multipart !== false) && (Math.abs(timediff) < 60000);
this.state.multipart = (!input.post.kind.startsWith("annotation.") && input.post.nick == input.prev.nick && input.prev.multipart !== false) && (Math.abs(timediff) < 60000);
this.state.prevWasText = (input.prev.kind === "text"); this.state.prevWasText = (input.prev.kind === "text");
this.updatePost(input) this.updatePost(input)

Loading…
Cancel
Save