From 3701a8ada2a96a7a147843d6d48bc672fd677bd3 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 22 Jun 2016 10:56:23 +1000 Subject: [PATCH] FIX: missing in action wrench on short topics --- .../javascripts/discourse/widgets/topic-timeline.js.es6 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 b/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 index 756d0b073df..06ab9b343f5 100644 --- a/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 @@ -209,14 +209,16 @@ export default createWidget('topic-timeline', { const stream = attrs.topic.get('postStream.stream'); const { currentUser } = this; - if (stream.length < 3) { return; } - let result = []; if (currentUser && currentUser.get('canManageTopic')) { result.push(h('div.timeline-controls', this.attach('topic-admin-menu-button', { topic }))); } + if (stream.length < 3) { + return result; + } + const bottomAge = relativeAge(new Date(topic.last_posted_at), { addAgo: true, defaultFormat: timelineDate }); result = result.concat([this.attach('link', { className: 'start-date',