Project

General

Profile

Actions

バグ #1134

open

NOTE: Plugin::Twitter::World#destroy(など) is deprecatedがでる

Added by Akira Ouchi almost 7 years ago. Updated almost 7 years ago.

Status:
新規
Priority:
通常
Assignee:
-
Target version:
プラグイン名:
ブランチ:
クラッシュする:

Description

--debugで動かしてみると、いくつか【NOTE: Plugin::Twitter::World#ナニナニ is deprecated】が出ているようでした。

NOTE: Plugin::Twitter::World#destroy

ツイートを削除時に出力されます。

warning: /Users/akkie/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/deprecate.rb:62:in `block (2 levels) in deprecate': NOTE: Plugin::Twitter::Message#destroy is deprecated; use spell (see: https://reference.mikutter.hachune.net/reference/2017/11/28/spell.html#destroy-twitter-tweet) instead. It will be removed on or after 2018-12-01.
Plugin::Twitter::Message#destroy called from {MIKUTTER_DIR}/core/plugin/command/command.rb:128.

ツイ消しに関しては自分でいじれました。

diff --git a/core/plugin/command/command.rb b/core/plugin/command/command.rb
index a7420c6d..871ed7c2 100644
--- a/core/plugin/command/command.rb
+++ b/core/plugin/command/command.rb
@@ -120,12 +120,13 @@ Plugin.create :command do
           visible: true,
           icon: Skin['close.png'],
           role: :timeline) do |opt|
+    world, = Plugin.filtering(:world_current, nil)
     opt.messages.deach { |m|
       +dialog(_('削除')) {
         label _('失った信頼はもう戻ってきませんが、本当にこのつぶやきを削除しますか?')
         link m
       }.next {
-        m.destroy
+        destroy(world, m)
       }
     }
   end

NOTE: Plugin::Twitter::World#user is deprecated

TLが流れる時、時々出るようです

warning: /Users/akkie/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/deprecate.rb:62:in `block (2 levels) in deprecate': NOTE: Plugin::Twitter::World#user is deprecated; use user_obj.idname instead. It will be removed on or after 2018-05-01.
Plugin::Twitter::World#user called from {MIKUTTER_DIR}/core/plugin/followingcontrol/followingcontrol.rb:47.

NOTE: Plugin::Twitter::World#postable? is deprecated

-TLが流れる時、時々出るようです-すくなくとも、ツイートを右クリックした時にたくさん出ることを確認できました。

warning: /Users/akkie/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/deprecate.rb:62:in `block (2 levels) in deprecate': NOTE: Plugin::Twitter::World#postable? is deprecated; use spell (see: https://reference.mikutter.hachune.net/reference/2017/11/28/spell.html#compose-twitter) instead. It will be removed on or after 2018-11-01.
Plugin::Twitter::World#postable? called from /Users/akkie/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/diva-0.3.0/lib/diva/combinator.rb:49.
Actions #1

Updated by Akira Ouchi almost 7 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF