レス削除時に一部専ブラでデータ破損扱いになる #29
Labels
No Label
bug
discussion
documentation
duplicate
enhancement
feature
help wanted
invalid
Priority
High
Priority
Low
Priority
Medium
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stat2/delightly-v2fork#29
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
原因
レスを削除した時、datの対象レスが
<><><>あぼーん<>
という形式で上書きされるが少なくともOpenJane系の専ブラでは3番目の要素
<><>(ここ)<><>
に何も入っていないと壊れた判定となるようです。解決方法
単純に5ch準拠で
あぼーん<>あぼーん<>あぼーん<>あぼーん<>
という形式にすれば直ります。該当箇所:
134f86a9d4/test/operate/control.php (L93)
コード例:
c4b24ecd4c
副作用
web版ではレスが削除された時に該当レスは全く見えなくなる仕様ですが、3番目の要素に何か入ると見えるようになってしまいます。
なので必要に応じてread.jsの修正もする必要があります。
基本的にはその修正方向でいいかと思いますが、2点追加の修正案があります。
以上を踏まえて以下のような修正はいかがでしょうか。
ブラウザ版の表示については追加の修正は不必要ではないでしょうか。
専ブラはあぼーんが表示されますので統一してもいいかと思います。
修正案の提示ありがとうございます。私もブラウザ版の仕様を専ブラに合わせるのが良いと思っていた所です。
これを踏まえて修正したのを後でプルリクエストに出してみます。