Project

General

Profile

Actions

バグ #1519

closed

gtk3: mastodon カスタム投稿起動時に postbox 入力済みテキストがカスタム投稿本文に反映されない

Added by Izumi Tsutsui over 3 years ago. Updated over 3 years ago.

Status:
終了
Priority:
通常
Assignee:
Target version:
プラグイン名:
mastodon_custom_posts
クラッシュする:
No

Description

従来の mikutter mastodon postbox の「カスタム投稿」は、
すでに postbox に入力済みのテキストがカスタム投稿側の「本文」にコピーされる仕様と思います。
一方、 gtk3版では postbox 入力済みのテキストがカスタム投稿側に反映されません。

gtk3版ではカスタム投稿のコードが source:plugin/mastodon/spell.rb@62fa5341#L35 から
source:plugin/mastodon_custom_post/mastodon_custom_post.rb@a1c13c70#L19
に移動しているものの、 postbox テキストから本文へのコピーの処理はほぼ同じ記述のようです。

    i_postbox = opt.widget
    postbox, = Plugin.filtering(:gui_get_gtk_widget, i_postbox)
    body = postbox.widget_post.buffer.text
    reply_to = postbox.mastodon_get_reply_to
    dialog _('カスタム投稿') do
      # オプションを並べる
      multitext _('CW警告文'), :spoiler_text
      self[:body] = body
      multitext _('本文'), :body

debug用 notice で見ると body にも本文テキストは入っているようですが、
なぜかカスタム投稿ウインドウの表示としては反映されていないようです。


Files

0001-multitext-refs-1519.patch (1.06 KB) 0001-multitext-refs-1519.patch Izumi Tsutsui, 2021-10-24 23:23
0001-multitext-buffer-1519.patch (1.09 KB) 0001-multitext-buffer-1519.patch Izumi Tsutsui, 2021-10-26 00:47
0001-custom-post-cleanup.patch (889 Bytes) 0001-custom-post-cleanup.patch Izumi Tsutsui, 2021-10-30 18:16
Actions

Also available in: Atom PDF