branch: elpa/fedi
commit 5d66e52fdf3f2e6356d4f2e33ea4ace369ed3421
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>

    move `fedi-instance-url'
---
 fedi-http.el | 7 +++----
 fedi.el      | 6 +++++-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/fedi-http.el b/fedi-http.el
index 25c06eee343..91e30b55062 100644
--- a/fedi-http.el
+++ b/fedi-http.el
@@ -39,14 +39,13 @@
 ;; (require 'request) ; for attachments upload
 (require 'url)
 
-(defvar fedi-instance-url)
-(defvar fedi-toot--media-attachment-ids)
-(defvar fedi-toot--media-attachment-filenames)
-
 (autoload 'shr-render-buffer "shr")
 (autoload 'fedi-auth--access-token "fedi-auth")
 (autoload 'fedi-toot--update-status-fields "fedi-toot")
 
+;; (defvar fedi-toot--media-attachment-ids)
+;; (defvar fedi-toot--media-attachment-filenames)
+
 (defvar fedi-http--api-version "v3")
 
 (defconst fedi-http--timeout 15
diff --git a/fedi.el b/fedi.el
index c2a79bb7c4c..1cac5d3a3ff 100644
--- a/fedi.el
+++ b/fedi.el
@@ -43,6 +43,9 @@
 
 (require 'fedi-http)
 
+(defvar fedi-instance-url nil
+  "The URL of the instance to connect to.")
+
 (defvar fedi-package-prefix nil
   "The name of your package, without following dash. Used to
 construct function names in `fedi-request'.")
@@ -62,7 +65,8 @@ This macro is designed to generate functions for fetching data
 from JSON APIs.
 
 To use it, you first need to set `fedi-package-prefix' to the
-name of your package.
+name of your package, and set `fedi-instance-url' to the URL of
+an instance of your fedi service.
 
 The name of functions generated with this will be the result of:
 (concat fedi-package-prefix \"-\" name).

Reply via email to