Misskey: CW指定されてないのに常にCWで隠される場合がある

Created on 30 Nov 2018  ·  5Comments  ·  Source: syuilo/misskey

Pleromaユーザーで起こりやすいみたい

🌌Federation 🐛Bug

Most helpful comment

そもそもsummaryをcontent warningテキスト格納に使用したり
さらにsensitiveフラグの代わりにし始めたのがいけないというのがあるわ。

All 5 comments

PleromaのMastodon-FEから書いた時に起きるわ

MisskeyのCW解釈

1. summary == null => CWではない
2. summary === ''  => CWだがCWテキストがない 
3. summary !== ''  => CWかつCWテキストあり

※ Mastodonには2がない

MastodonのCW送信

CWではない          => summary = null で送る
CWかつCWテキストあり => summary = 空以外の文字列 で送る

Pleroma Mastodon-FEのCW送信

CWではない          => summary = '' で送る ★これが「CWだがCWテキストがない」と誤認識される
CWかつCWテキストあり => summary = 空以外の文字列 で送る

なるほど。ありがとうございます🙏

空CWはMisskeyからMastodonに流れて来た時にCWが外れてしまいます。
外部に流すときにCWのままにしたいなら、何かテキストを補う必要があります。

ダミーテキストU+200Bでも大丈夫っぽい

そもそもsummaryをcontent warningテキスト格納に使用したり
さらにsensitiveフラグの代わりにし始めたのがいけないというのがあるわ。

Was this page helpful?
0 / 5 - 0 ratings