#10 Duplicated post with activity (like/reply/repost) between remote GNU social server

Closed
opened 8 months ago by senooken · 11 comments

GNU socialのリモートサーバーの投稿に対して、like/reply/repostすると、なぜか元投稿が再び投稿されて、元投稿が二重になってしまう。会話ツリーが崩れるし、メンションがあればそれも再度通知されるのでいろいろ困る。

GNU socialのリモート同士でだけ発生する。DMは問題ないし、自サーバー内も問題ない。

Answering to a notice duplicates it on both nodes - NotABug.org: Free code hosting」でも報告されている。

OStatusプラグインを無効にすれば解決するかもしれないかと思ったが、関係ない模様。

avatar以前、GNU socialのOStatusプラグインが投稿増殖の原因ではないか、といふ話をしましたが、關係無いみたいです。 OStatus無效のサーバーを2作り、返信などを試したところ、投稿が増殖する事を確認しました。 一應、證據として増殖した投稿のURLを共有します。 https://gs.bibi.moe/notice/34 https://gs.bibi.moe/notice/35 ↓こちらの返信により投稿が増えてゐます。 https://cb.bibi.moe/notice/5

暫定対策として、以下の引用投稿がある。

  1. 会話時は引用投稿 (メンション+本文内に言及元URL貼付)。
  2. 連続会話時は自分の投稿に引用投稿することで会話ツリーをある程度維持。

上記対策は後日記事にする。

GNU social同士の会話で困るので優先的に直したい。作業量次第だが、報酬2万円くらいを想定 (1日5000円で4日ほど)。

2023-08-17T23:05+09:00 Thu追記。情報量にほぼ違いはないが、「機能: GNU social v2のリモートサーバー同士の投稿への反応時の元投稿の再送回避方法 | GNU social JP」の記事にした。

GNU socialのリモートサーバーの投稿に対して、like/reply/repostすると、なぜか元投稿が再び投稿されて、元投稿が二重になってしまう。会話ツリーが崩れるし、メンションがあればそれも再度通知されるのでいろいろ困る。 GNU socialのリモート同士でだけ発生する。DMは問題ないし、自サーバー内も問題ない。 「[Answering to a notice duplicates it on both nodes - NotABug.org: Free code hosting](https://notabug.org/diogo/gnu-social/issues/229)」でも報告されている。 OStatusプラグインを無効にすれば解決するかもしれないかと思ったが、関係ない模様。 <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/785406">2023-08-17T12:23:07.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">以前、GNU socialのOStatusプラグインが投稿増殖の原因ではないか、といふ話をしましたが、關係無いみたいです。 OStatus無效のサーバーを2作り、返信などを試したところ、投稿が増殖する事を確認しました。 一應、證據として増殖した投稿のURLを共有します。 https://gs.bibi.moe/notice/34 https://gs.bibi.moe/notice/35 ↓こちらの返信により投稿が増えてゐます。 https://cb.bibi.moe/notice/5</span></main></article></blockquote> 暫定対策として、以下の引用投稿がある。 1. 会話時は引用投稿 (メンション+本文内に言及元URL貼付)。 2. 連続会話時は自分の投稿に引用投稿することで会話ツリーをある程度維持。 上記対策は後日記事にする。 GNU social同士の会話で困るので優先的に直したい。作業量次第だが、報酬2万円くらいを想定 (1日5000円で4日ほど)。 2023-08-17T23:05+09:00 Thu追記。情報量にほぼ違いはないが、「[機能: GNU social v2のリモートサーバー同士の投稿への反応時の元投稿の再送回避方法 | GNU social JP](https://web.gnusocial.jp/post/2023/08/18/7828/)」の記事にした。
senooken commented 8 months ago
Owner

以下が暫定的な原因と対策とのこと。

avatarGNU social -> GNU social で返信などを「された」時に投稿が増える現象を修正できた。 [原因?] ・GNU socialの投稿のuriは「ローカル向け」「AP向け」の2つの體系を持ち、兩者を適切に區別できてゐない。 ※この呼び方は正式な物では無い。 ・投稿時、   自サーバーのDBには、「ローカル向け」のuriで保存される。   他サーバーのDBには、「AP向け」のuriで保存される。 ・返信時、「する側」は、「AP向け」のuriに向けて返信をする。 ・その時點では返信を「される側」のDBには、「ローカル向け」のuriしか無い。 ・ここで返信を「される側」は、「AP向け」のuriを持つ投稿を「新しく作成」してしまふ。 ↓増殖したDBのイメージ https://social.076.moe/notice/788640 [對策] ・「uriを元にローカルのDBから投稿を探す」處理を修正。 ・リモートから返信「された」時、「AP向け」のuriの投稿を探し、存在しなかつた場合に、次の處理を追加。 『「AP向け」のuriを元に「ローカル向け」uriの投稿を探す。』 →これで「ローカル向け」投稿がみつかれば、それが返信と結び附く。 [今後] ・返信を「する側」にも対策を入れられないか調べる。 ・GNU social以外のサーバーとの通信に惡影響がないか調べる。 https://social.076.moe/url/645864
avatarGNU socialから「返信する」場合に對策ができないか調査。 「返信された」側のログ「ActivityPub Inbox: Request contents:」を観察。 (異なる投稿への返信のためid 256,209 の差はどうでもいい) mastodonからのinReplyToはactivitystream(?)になつてゐる。 GNU socialからのinReplyToはただの投稿のURLになつてゐる。 GNU socialから返信する時もmastodonの仕様に合せれば、返信する側の不具合も無くなる? [gs->gs] $ grep 'res-58' public/gnusocial.log "inReplyTo":"https://gs.bibi.moe/notice/254" (前後略) [mastodon->gs] $ grep 'mstdn.jpから' public/gnusocial.log "inReplyTo":"httpps://gs.bibi.moe/object/note/209" (前後略)
avatar修正版のGNU socialから、通常のGNU social(076)に返信しても、元の投稿が増殖しない樣にできた。 mastodonの挙動に合せたらうまく行つた。 今氣附いたけど、昨日の修正も含め「いいね」「リピート」がうまく届いてゐないみたい。 後はその邊りと、修正方法がActivityPubの仕様に合つてゐるかとを調査しよう。 https://social.076.moe/url/648230
以下が暫定的な原因と対策とのこと。 <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/789354">2023-08-18T15:16:49.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">GNU social -&gt; GNU social で返信などを「された」時に投稿が増える現象を修正できた。 [原因?] ・GNU socialの投稿のuriは「ローカル向け」「AP向け」の2つの體系を持ち、兩者を適切に區別できてゐない。 ※この呼び方は正式な物では無い。 ・投稿時、   自サーバーのDBには、「ローカル向け」のuriで保存される。   他サーバーのDBには、「AP向け」のuriで保存される。 ・返信時、「する側」は、「AP向け」のuriに向けて返信をする。 ・その時點では返信を「される側」のDBには、「ローカル向け」のuriしか無い。 ・ここで返信を「される側」は、「AP向け」のuriを持つ投稿を「新しく作成」してしまふ。 ↓増殖したDBのイメージ https://social.076.moe/notice/788640 [對策] ・「uriを元にローカルのDBから投稿を探す」處理を修正。 ・リモートから返信「された」時、「AP向け」のuriの投稿を探し、存在しなかつた場合に、次の處理を追加。 『「AP向け」のuriを元に「ローカル向け」uriの投稿を探す。』 →これで「ローカル向け」投稿がみつかれば、それが返信と結び附く。 [今後] ・返信を「する側」にも対策を入れられないか調べる。 ・GNU social以外のサーバーとの通信に惡影響がないか調べる。 https://social.076.moe/url/645864</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/791345">2023-08-19T06:00:14.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div><div><a href="https://social.076.moe/notice/789354">replying to</a> たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">GNU socialから「返信する」場合に對策ができないか調査。 「返信された」側のログ「ActivityPub Inbox: Request contents:」を観察。 (異なる投稿への返信のためid 256,209 の差はどうでもいい) mastodonからのinReplyToはactivitystream(?)になつてゐる。 GNU socialからのinReplyToはただの投稿のURLになつてゐる。 GNU socialから返信する時もmastodonの仕様に合せれば、返信する側の不具合も無くなる? [gs-&gt;gs] $ grep 'res-58' public/gnusocial.log "inReplyTo":"https://gs.bibi.moe/notice/254" (前後略) [mastodon-&gt;gs] $ grep 'mstdn.jpから' public/gnusocial.log "inReplyTo":"httpps://gs.bibi.moe/object/note/209" (前後略)</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/791633">2023-08-19T08:14:58.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div><div><a href="https://social.076.moe/notice/791345">replying to</a> たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">修正版のGNU socialから、通常のGNU social(076)に返信しても、元の投稿が増殖しない樣にできた。 mastodonの挙動に合せたらうまく行つた。 今氣附いたけど、昨日の修正も含め「いいね」「リピート」がうまく届いてゐないみたい。 後はその邊りと、修正方法がActivityPubの仕様に合つてゐるかとを調査しよう。 https://social.076.moe/url/648230</span></main></article></blockquote>
senooken commented 8 months ago
Owner

修正できた模様。

avatarリモートの會話でもツリーが繋がる樣にできた!! cb丼=修正適用濟み。 海砂利・076=未修正。 [會話をリモートに配信] cb丼ローカル(繋がつて當然) https://cb.bibi.moe/conversation/206 海砂利で表示(繋がる) https://gs.bibi.moe/conversation/272 076で表示(繋がる) https://social.076.moe/conversation/369723 [リモートの會話を受信] 076ローカル(繋がつて當然) https://social.076.moe/conversation/369729 cb丼で表示(繋がる) https://cb.bibi.moe/conversation/207 海砂利で表示(未修正だから、繋がらない) https://gs.bibi.moe/conversation/273
avatar増殖の修正、ツリーの修正で、GNU social 同士の聯合に問題は無くなつたはず。 休憩後、もう些し動作確認をしたら、パッチを公開して、直し方を説明します。 これで誰でも無料レンタルサーバーで自分用のGNU socialのインスタンスを作成できるかも。
avatar取り急ぎ、わたしの修正版のGNU socialをnotoabugで公開しました。 https://notabug.org/tak4/gnusocial/src/fix-duplicate-and-tree ・GNU social同士でリプライ/リピート/いいねをした時の投稿の増殖を修正。 ・リモートの會話でもツリーが繋がる樣に修正。←別問題だが、原因や修正箇處が同じで、増殖を直すだけでは解決にならないと判斷した。 どちらの修正も、自分のGNU socialに適用するだけでよく、相手のGNU socialはそのままで大丈夫です。 單體テストが無く、他機能への副作用は未調査のため、修正としては不充分です。飽くまでも非公式なフォークです。 これから、コードの説明とパッチを用意してクリアネットで公開します。
修正できた模様。 <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/795335">2023-08-20T07:16:31.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">リモートの會話でもツリーが繋がる樣にできた!! cb丼=修正適用濟み。 海砂利・076=未修正。 [會話をリモートに配信] cb丼ローカル(繋がつて當然) https://cb.bibi.moe/conversation/206 海砂利で表示(繋がる) https://gs.bibi.moe/conversation/272 076で表示(繋がる) https://social.076.moe/conversation/369723 [リモートの會話を受信] 076ローカル(繋がつて當然) https://social.076.moe/conversation/369729 cb丼で表示(繋がる) https://cb.bibi.moe/conversation/207 海砂利で表示(未修正だから、繋がらない) https://gs.bibi.moe/conversation/273</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/795337">2023-08-20T07:19:53.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">増殖の修正、ツリーの修正で、GNU social 同士の聯合に問題は無くなつたはず。 休憩後、もう些し動作確認をしたら、パッチを公開して、直し方を説明します。 これで誰でも無料レンタルサーバーで自分用のGNU socialのインスタンスを作成できるかも。</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/795877">2023-08-20T11:02:16.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">取り急ぎ、わたしの修正版のGNU socialをnotoabugで公開しました。 https://notabug.org/tak4/gnusocial/src/fix-duplicate-and-tree ・GNU social同士でリプライ/リピート/いいねをした時の投稿の増殖を修正。 ・リモートの會話でもツリーが繋がる樣に修正。←別問題だが、原因や修正箇處が同じで、増殖を直すだけでは解決にならないと判斷した。 どちらの修正も、自分のGNU socialに適用するだけでよく、相手のGNU socialはそのままで大丈夫です。 單體テストが無く、他機能への副作用は未調査のため、修正としては不充分です。飽くまでも非公式なフォークです。 これから、コードの説明とパッチを用意してクリアネットで公開します。</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/796286">2023-08-20T13:42:45.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div><div><a href="https://social.076.moe/notice/795877">replying to</a> たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">GNU socialのバグの修正内容の説明と、パッチも公開しました。 かういふ事をするのは始めてなので、分りにくければすみません。 https://bibi.moe/gs/bugfix-20230820.html</span></main></article></blockquote>
senooken commented 8 months ago
Owner

#11 で対応。修正の入ったサーバーのユーザーが行ったアクションでは、相手側の投稿は二重にならなくなりました。未修正のサーバーから、アクションを受けると二重になります。

#11 で対応。修正の入ったサーバーのユーザーが行ったアクションでは、相手側の投稿は二重にならなくなりました。未修正のサーバーから、アクションを受けると二重になります。
senooken commented 8 months ago
Owner

OStatusプラグインが有効だと二重になるケースがある模様。

avatar同じ投稿が076側でのみ2重投稿されてゐる……(いいねなどはしてゐない) 例の修正は、複數サーバーに適用された時に問題が起きるのかも。 また後日修正します。 ↓増えた投稿 https://social.076.moe/conversation/372220#notice-800101 https://social.076.moe/conversation/372221#notice-800102 ↓元(増えてゐない) https://gs.bibi.moe/tak4/ https://gs.bibi.moe/notice/488
avatarOStatusを有效にした場合の2重投稿は今の所、わたしの個人サーバーでしか起こつてゐない樣ですが、 明日以降きちんと調べます。すみません……
avatarGNU social のv2.0.2でOStatusが有效だと投稿が増幅する、と言つた件、 新しくv2.0.2のサーバー( https://kt.bibi.moe/ ) を建てて投稿したら増幅しなかつたので、 既存のサーバー ( https://gs.bibi.moe/ ) と 076 との間の通信に限って何らかの問題がある氣がしました。 他のサーバーで問題が起きるまでは様子見しようと思ひます。 起きてからでは遲いですが、OStatusを無效にする事で応急処置は可能です。
avatarどうも問題が起るアカウントは1つだけみたいです。 ↓このユーザーでのみ、076のサーバーで増幅しますが、他のテストサーバーから見た時は増幅しませんでした。 https://gs.bibi.moe/tak4 ↓同じサーバーの別のユーザーは076から見ても増幅しませんでした。 https://gs.bibi.moe/test 考へられる理由は、 ・「tak4」という名前が076と同じ。 ・ https://gs.bibi.moe/tak4 は076からフォローやフォロー解除に失敗した事があり、フォロー狀態が變になつてゐる。 ・ https://gs.bibi.moe/tak4 はmastodonからフォローしてゐる/されてゐる。 あたりですかね…… 一旦、gs.bibi.moe のサーバーでのみ OStatusを解除してをきます。

どうやらこの件はサーバー固有の問題の可能性が高い模様。

OStatusプラグインが有効だと二重になるケースがある模様。 <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/800127">2023-08-21T15:55:33.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">同じ投稿が076側でのみ2重投稿されてゐる……(いいねなどはしてゐない) 例の修正は、複數サーバーに適用された時に問題が起きるのかも。 また後日修正します。 ↓増えた投稿 https://social.076.moe/conversation/372220#notice-800101 https://social.076.moe/conversation/372221#notice-800102 ↓元(増えてゐない) https://gs.bibi.moe/tak4/ https://gs.bibi.moe/notice/488</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/800135">2023-08-21T15:57:46.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div><div><a href="https://social.076.moe/notice/800127">replying to</a> たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">上記現象は、投稿する側でOStatusプラグインを無效にすると直るみたいです。</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/800214">2023-08-21T16:12:35.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">OStatusを有效にした場合の2重投稿は今の所、わたしの個人サーバーでしか起こつてゐない樣ですが、 明日以降きちんと調べます。すみません……</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/803378">2023-08-22T13:47:34.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">GNU social のv2.0.2でOStatusが有效だと投稿が増幅する、と言つた件、 新しくv2.0.2のサーバー( https://kt.bibi.moe/ ) を建てて投稿したら増幅しなかつたので、 既存のサーバー ( https://gs.bibi.moe/ ) と 076 との間の通信に限って何らかの問題がある氣がしました。 他のサーバーで問題が起きるまでは様子見しようと思ひます。 起きてからでは遲いですが、OStatusを無效にする事で応急処置は可能です。</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//social.076.moe/avatar/225-48-20230223033504.webp" style="height:4.5em" /><div><div><a href="https://social.076.moe/notice/803583">2023-08-22T14:11:45.000Z</a></div><div>たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div><div><a href="https://social.076.moe/notice/803378">replying to</a> たかし|<a href="https://social.076.moe/tak4">tak4@social.076.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">どうも問題が起るアカウントは1つだけみたいです。 ↓このユーザーでのみ、076のサーバーで増幅しますが、他のテストサーバーから見た時は増幅しませんでした。 https://gs.bibi.moe/tak4 ↓同じサーバーの別のユーザーは076から見ても増幅しませんでした。 https://gs.bibi.moe/test 考へられる理由は、 ・「tak4」という名前が076と同じ。 ・ https://gs.bibi.moe/tak4 は076からフォローやフォロー解除に失敗した事があり、フォロー狀態が變になつてゐる。 ・ https://gs.bibi.moe/tak4 はmastodonからフォローしてゐる/されてゐる。 あたりですかね…… 一旦、gs.bibi.moe のサーバーでのみ OStatusを解除してをきます。</span></main></article></blockquote> どうやらこの件はサーバー固有の問題の可能性が高い模様。
senooken commented 8 months ago
Owner

#11https://notabug.org/gnusocialjp/gnusocial/pulls/11#issuecomment-37258 で報酬の贈呈も行ったので、クローズします。

#11 の <https://notabug.org/gnusocialjp/gnusocial/pulls/11#issuecomment-37258> で報酬の贈呈も行ったので、クローズします。
senooken commented 8 months ago
Owner

@tak4 GNU socialのリモートサーバーの投稿につけたいいねを取り消すと、元投稿が再送される付随する問題を確認したため再開した。

@tak4 GNU socialのリモートサーバーの投稿につけたいいねを取り消すと、元投稿が再送される付随する問題を確認したため再開した。
senooken commented 8 months ago
Owner

@tak4 他に、GNU social以外の外部サーバー (mastodon.socialなど) と会話すると、自分の投稿が二重送信されるケースがある模様。こちらは重要度の高い不具合。

@tak4 他に、GNU social以外の外部サーバー (mastodon.socialなど) と会話すると、自分の投稿が二重送信されるケースがある模様。こちらは重要度の高い不具合。 - https://gnusocial.jp/notice/3913426 - https://gnusocial.jp/notice/3913428 <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//gnusocial.jp/avatar/19330-48-20221211004439.webp" style="height:4.5em" /><div><div><a href="https://gnusocial.jp/notice/3913426">2023-08-26T15:43:28.000Z</a></div><div>GNU Too|<a href="https://gnusocial.jp/gnu2">gnu2@gnusocial.jp</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">@MediaActivist@kolektiva.social I never "got" twitter, but then again I don't really get Mastodon either.</span></main></article></blockquote>
senooken commented 8 months ago
Owner

状況。

avatarトリガーは「いいねされた側」のサーバー。 原因となる処理は特定した。 (バグ修正前からあった処理) 修正して動作確認ずみ。 もう少し念入りに動作確認をする。 また、いいね解除がリモートに届かない事を確認したのでこれも調査する。
avatarヤッタヤッタ!! mastodonからGNU socialの投稿を「いいね」して解除した時に反映されないバグを修正できた。 まだ、GNU socialから「いいね」解除してもリモートに反映されないから、これも直す。
avatarよし、GNU socialからリモートへのいいね解除もできる様になつた…… けど、リモートから「いいね→解除→再度いいね」されても「いいね解除」のままになる。 簡単なら直します。
avatar今週の日曜までには「いいね解除で増殖」「リモートのいいねの不具合」直してプルリクできる予定。 根本的に増殖の原因に見える処理を削除したので、おそらくmastodonとの会話も問題ないのではないか? OStatusプラグインが悪さする可能性もあるけど。
avatarプルリクしました。8.2対応の事もあるのでタイミング悪かったかも…… https://notabug.org/gnusocialjp/gnusocial/pulls/17 > リモートから「いいね→解除→再度いいね」されても「いいね解除」のままになる。 これは直していません。(直ったかもしれませんが……)
状況。 <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//gs.bibi.moe/avatar/1-48-20230816144255.webp" style="height:4.5em" /><div><div><a href="https://gs.bibi.moe/notice/1556">2023-08-29T14:18:01.000Z</a></div><div>たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div><div><a href="https://gs.bibi.moe/notice/1482">replying to</a> たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">トリガーは「いいねされた側」のサーバー。 原因となる処理は特定した。 (バグ修正前からあった処理) 修正して動作確認ずみ。 もう少し念入りに動作確認をする。 また、いいね解除がリモートに届かない事を確認したのでこれも調査する。</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//gs.bibi.moe/avatar/1-48-20230816144255.webp" style="height:4.5em" /><div><div><a href="https://gs.bibi.moe/notice/1881">2023-08-31T14:11:03.000Z</a></div><div>たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">ヤッタヤッタ!! mastodonからGNU socialの投稿を「いいね」して解除した時に反映されないバグを修正できた。 まだ、GNU socialから「いいね」解除してもリモートに反映されないから、これも直す。</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//gs.bibi.moe/avatar/1-48-20230816144255.webp" style="height:4.5em" /><div><div><a href="https://gs.bibi.moe/notice/1895">2023-08-31T15:46:29.000Z</a></div><div>たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div><div><a href="https://gs.bibi.moe/notice/1881">replying to</a> たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">よし、GNU socialからリモートへのいいね解除もできる様になつた…… けど、リモートから「いいね→解除→再度いいね」されても「いいね解除」のままになる。 簡単なら直します。</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//gs.bibi.moe/avatar/1-48-20230816144255.webp" style="height:4.5em" /><div><div><a href="https://gs.bibi.moe/notice/1896">2023-08-31T15:49:05.000Z</a></div><div>たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div><div><a href="https://gs.bibi.moe/notice/1895">replying to</a> たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">今週の日曜までには「いいね解除で増殖」「リモートのいいねの不具合」直してプルリクできる予定。 根本的に増殖の原因に見える処理を削除したので、おそらくmastodonとの会話も問題ないのではないか? OStatusプラグインが悪さする可能性もあるけど。</span></main></article></blockquote> <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//gs.bibi.moe/avatar/1-48-20230816144255.webp" style="height:4.5em" /><div><div><a href="https://gs.bibi.moe/notice/2292">2023-09-03T10:32:12.000Z</a></div><div>たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div><div><a href="https://gs.bibi.moe/notice/1895">replying to</a> たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">プルリクしました。8.2対応の事もあるのでタイミング悪かったかも…… https://notabug.org/gnusocialjp/gnusocial/pulls/17 &gt; リモートから「いいね→解除→再度いいね」されても「いいね解除」のままになる。 これは直していません。(直ったかもしれませんが……)</span></main></article></blockquote>
senooken commented 8 months ago
Owner

修正内容。

修正内容。 <blockquote xmlns="http://www.w3.org/1999/xhtml" style="background:rgb(29,155,240);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))"><article><header style="display:flex;line-height:1.5"><img xmlns="http://www.w3.org/1999/xhtml" referrerpolicy="no-referrer" alt="avatar" src="//gs.bibi.moe/avatar/1-48-20230816144255.webp" style="height:4.5em" /><div><div><a href="https://gs.bibi.moe/notice/2324">2023-09-03T13:21:31.000Z</a></div><div>たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div><div><a href="https://gs.bibi.moe/notice/2292">replying to</a> たかし(自宅)|<a href="https://gs.bibi.moe/tak4">tak4@gs.bibi.moe</a></div></div></header><main><span style="white-space:pre-wrap;word-wrap:word-break">一応、自分用の覚書。 https://bibi.moe/gs/bugfix-20230903.html</span></main></article></blockquote>
senooken commented 8 months ago
Owner

#17 で対応してマージした。CHANGELOGに情報を追記後にクローズする。

#17 で対応してマージした。CHANGELOGに情報を追記後にクローズする。
senooken commented 7 months ago
Owner

suwakoのPRと一緒にマージして情報追記できるかと思いましたが、続報が全然なく、情報追記のタイミングがないので、これだけ先に情報を追記してクローズします。

714ab0c872

suwakoのPRと一緒にマージして情報追記できるかと思いましたが、続報が全然なく、情報追記のタイミングがないので、これだけ先に情報を追記してクローズします。 https://notabug.org/gnusocialjp/gnusocial/commit/714ab0c872c10592ee2c2f4c407cbdb668d5175b
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.