aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tekuti.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/tekuti.el b/tekuti.el
index bf9a805..5683b10 100644
--- a/tekuti.el
+++ b/tekuti.el
@@ -4,6 +4,7 @@
;; Author: Tom Willemse <chelys@data>
;; Keywords: comm
+;; Package-Requires: (org)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -39,6 +40,10 @@
;;; Code:
+(require 'org)
+
+(defvar tekuti-host "http://127.0.0.1:8080")
+
(defun tekuti--format-date (date)
"Format DATE into a date that tekuti understands."
(format-time-string "%a, %d %b %Y %H:%M:%S %Z"
@@ -83,9 +88,7 @@
`(("Content-Type" . "application/x-www-form-urlencoded")))
(url-request-data (tekuti-form-encode-data data)))
(url-retrieve (format "%s/admin/new-post" tekuti-host)
- (lambda (status &rest args) (message "Finished: %s" status)))))
-
-(defvar tekuti-host "http://127.0.0.1:8080")
+ (lambda (status &rest _) (message "Finished: %s" status)))))
(provide 'tekuti)
;;; tekuti.el ends here