diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-14 22:56:00 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-14 22:56:00 -0200 |
commit | fc5f8f95844c0cc00ee7038c5a577b641de68939 (patch) | |
tree | 9d50f2ff478c53a5f1c58564836a827cf55e0ff4 | |
parent | 58280041655c3bd940ea1721af0d4f73e736ca05 (diff) |
Fix sx-display
-rw-r--r-- | sx-interaction.el | 12 |
1 files changed, 8 insertions, 4 deletions
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 |