diff --git a/src/main/lemondronor/circlebot.cljs b/src/main/lemondronor/circlebot.cljs index 3462051..a929049 100644 --- a/src/main/lemondronor/circlebot.cljs +++ b/src/main/lemondronor/circlebot.cljs @@ -417,7 +417,9 @@ (if (get-in config [:twitter :enabled?]) (twitter/tweet (twitter/twit (:twitter config)) description - [image-path]) + [image-path] + lat + lon) (log-warn "Skipping tweeting")) (log-warn "Skipping tweet %s %s" image-path description))))))))))) diff --git a/src/main/lemondronor/circlebot/twitter.cljs b/src/main/lemondronor/circlebot/twitter.cljs index 9b9e6e2..022d9b1 100644 --- a/src/main/lemondronor/circlebot/twitter.cljs +++ b/src/main/lemondronor/circlebot/twitter.cljs @@ -35,7 +35,7 @@ ;; Posts a tweet with optional multiple media. Returns a promise that ;; resolves to the response result. -(defn tweet [twit status image-paths lat long] +(defn tweet [twit status image-paths lat lon] (p/then (p/all (map #(upload-image twit %) image-paths)) (fn [media-ids] (log-info "Tweeting status:'%s' with media: %s" status media-ids) @@ -43,7 +43,7 @@ (clj->js {:status status :media_ids [media-ids] :lat lat - :long long + :long lon :display_coordinates true })) result (js->clj result :keywordize-keys true)]