aboutsummaryrefslogtreecommitdiff
path: root/sx-question.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-11-15 02:05:56 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-11-15 02:05:56 +0000
commitc0c46f3bed3479f14065d1d28cad63217f9473bc (patch)
treedb402390f14dcd4e674c1d2e2c5e7e8605a4283b /sx-question.el
parent6a2252c6e6aec21cb9c9336b706947343f9e4fa6 (diff)
Add site date to questions
Diffstat (limited to 'sx-question.el')
-rw-r--r--sx-question.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/sx-question.el b/sx-question.el
index 19251ab..607b3f6 100644
--- a/sx-question.el
+++ b/sx-question.el
@@ -47,11 +47,13 @@
(defun sx-question-get-questions (site &optional page)
"Get the page PAGE of questions from SITE."
- (sx-method-call
- "questions"
- `((site . ,site)
- (page . ,page))
- sx-question-browse-filter))
+ (mapcar
+ (lambda (question) (cons (cons 'site site) question))
+ (sx-method-call
+ "questions"
+ `((site . ,site)
+ (page . ,page))
+ sx-question-browse-filter)))
(defun sx-question-get-question (site id)
"Get the question ID from SITE."