Project

General

Profile

Actions

機能 #909

open

IntentはURIを開く前に、短縮URLの展開を試みる

Added by toshi_a 初音 almost 7 years ago.

Status:
新規
Priority:
通常
Assignee:
-
Target version:
Start date:
2016-10-08
Due date:
% Done:

0%

プラグイン名:
intent

Description

mikutter 3.4のopenimgは、画像を開く前に短縮URLの展開のために、次のようなコードが入っていた。

Plugin.filtering(:expand_url, [shrinked_url])

実際には、現状だとタイムラインに表示されたらURL展開が行われるため、URLが短縮されているせいで適切なIntentに到達できないということは早々ないので、intentプラグイン側で面倒を見たほうが良さそう。

または、例えばBitlyとかTCoという短縮URLのModelを定義しておいて、展開してopenイベントを発生するというIntentを定義した方がいいかも。この方法ならintentプラグインを触らず、URL展開系のプラグインの方で対応できる。


Related issues

Related to 機能 #900: PhotoModel終了toshi_a 初音2016-09-27

Actions
Actions #1

Updated by toshi_a 初音 almost 7 years ago

Actions

Also available in: Atom PDF