| @@ -19,7 +19,7 @@ module Agents | ||
| 19 | 19 |  | 
| 20 | 20 | `blog_name` Your Tumblr URL (e.g. "mustardhamsters.tumblr.com") | 
| 21 | 21 |  | 
| 22 | - `post_type` One of [text, photo, quote, link, chat, audio, video] | |
| 22 | + `post_type` One of [text, photo, quote, link, chat, audio, video, reblog] | |
| 23 | 23 |  | 
| 24 | 24 |  | 
| 25 | 25 | ------------- | 
| @@ -49,6 +49,7 @@ module Agents | ||
| 49 | 49 |  | 
| 50 | 50 | **Video** `caption` `embed` | 
| 51 | 51 |  | 
| 52 | + **Reblog** `id` `reblog_key` `comment` | |
| 52 | 53 |  | 
| 53 | 54 | ------------- | 
| 54 | 55 |  | 
| @@ -90,6 +91,9 @@ module Agents | ||
| 90 | 91 |            'conversation' => "{{conversation}}", | 
| 91 | 92 |            'external_url' => "{{external_url}}", | 
| 92 | 93 |            'embed' => "{{embed}}", | 
| 94 | +          'id' => "{{id}}", | |
| 95 | +          'reblog_key' => "{{reblog_key}}", | |
| 96 | +          'comment' => "{{comment}}", | |
| 93 | 97 | }, | 
| 94 | 98 | } | 
| 95 | 99 | end | 
| @@ -163,6 +167,11 @@ module Agents | ||
| 163 | 167 | options_obj[:caption] = options['caption'] | 
| 164 | 168 | options_obj[:embed] = options['embed'] | 
| 165 | 169 | tumblr.video(blog_name, options_obj) | 
| 170 | + when "reblog" | |
| 171 | + options_obj[:id] = options['id'] | |
| 172 | + options_obj[:reblog_key] = options['reblog_key'] | |
| 173 | + options_obj[:comment] = options['comment'] | |
| 174 | + tumblr.reblog(blog_name, options_obj) | |
| 166 | 175 | end | 
| 167 | 176 | end | 
| 168 | 177 |  |