From fc5f8f95844c0cc00ee7038c5a577b641de68939 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Wed, 14 Jan 2015 22:56:00 -0200 Subject: Fix sx-display --- sx-interaction.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'sx-interaction.el') diff --git a/sx-interaction.el b/sx-interaction.el index 09fa112..da9c4aa 100644 --- a/sx-interaction.el +++ b/sx-interaction.el @@ -164,13 +164,17 @@ likes." (interactive (list (sx--data-here))) (sx-assoc-let data (cond - ;; If we have a `title', then we have the question object itself, - ;; and there's no need to fetch anything. - (.title + ;; This is an attempt to identify when we have the question + ;; object itself, so there's no need to fetch anything. This + ;; happens inside the question-list, but it can be easily + ;; confused with the inbox (whose items have a title, a body, and + ;; a question_id. + ((and .title .question_id .score + (not .item_type) (not .notification_type)) (sx-display-question data 'focus)) (.answer_id (sx-display-question - (sx-question-get-from-answer .site_par .id) + (sx-question-get-from-answer .site_par .answer_id) 'focus) (sx--find-in-buffer 'answer .answer_id)) (.question_id -- cgit v1.2.3