投稿済みリンクの取得ロジックを修正
@@ -129,10 +129,8 @@ | ||
129 | 129 | |
130 | 130 | after_edit(client, request, response) |
131 | 131 | |
132 | - if @get_plugin then | |
133 | - (post, description, link) = @get_plugin.get_article(client, postid) | |
134 | - response[:link] = link | |
135 | - end | |
132 | + (post, description, link) = get_article(client, postid) | |
133 | + response[:link] = link | |
136 | 134 | |
137 | 135 | @logger.debug("Finish #{self.class.name}#edit ... result = true") if @logger && @logger.debug? |
138 | 136 | response.success = true |
@@ -133,10 +133,8 @@ | ||
133 | 133 | |
134 | 134 | after_post(client, request, response) |
135 | 135 | |
136 | - if @get_plugin then | |
137 | - (post, description, link) = @get_plugin.get_article(client, postid) | |
138 | - response[:link] = link | |
139 | - end | |
136 | + (post, description, link) = get_article(client, postid) | |
137 | + response[:link] = link | |
140 | 138 | rescue => e |
141 | 139 | @logger.error("ブログ記事の投稿に失敗しました。") if @logger |
142 | 140 | @logger.error(e) if @logger |