Project

General

Profile

Actions

環境対応 #893

closed

環境対応 #890: TwitterのTweet文字数制限の変更

ツイート投稿時、attachment_urlパラメータを利用する

Added by toshi_a 初音 over 8 years ago. Updated over 8 years ago.

Status:
終了
Priority:
通常
Target version:
Start date:
2016-09-21
Due date:
% Done:

0%

プラグイン名:

Description

ツイート末尾に特定のURLをつける場合、本文に含めずにattachment_urlパラメータに渡すと、字数カウントから除外される。

This URL must be a Tweet permalink, or DM deep link.

Actions #1

Updated by toshi_a 初音 over 8 years ago

  • Status changed from 新規 to 実装待ち
  • Assignee set to toshi_a 初音
Actions #2

Updated by toshi_a 初音 over 8 years ago

MikuTwitter::APIShortcuts#update に attachment_url のような値を渡すようにすると、PostBoxのほうでquoted_tweetのURLと本文をバラしてAPIを叩かなければいけない。
しかしそんなことをすると、別のサービスに対応する黒魔術プラグインが、末尾にツイートのパーマリンクを含む投稿をしようとした場合に、その内容が失われるようになってしまうため、この方法を取ってはならない。

あまり美しくないが、MikuTwitter::APIShortcuts#update が、本文の末尾からTweetのパーマリンクを検出して、attachment_urlパラメータに渡す処理をして、APIは変更しない。
mikutter 3.5では、ここを思い切って変更してしまってもよい。

Actions #3

Updated by toshi_a 初音 over 8 years ago

  • Status changed from 実装待ち to 終了
Actions

Also available in: Atom PDF