-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance: 編集を連合させる(送信のみ) #11945
enhance: 編集を連合させる(送信のみ) #11945
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #11945 +/- ##
===========================================
- Coverage 79.00% 78.89% -0.11%
===========================================
Files 928 753 -175
Lines 99089 76216 -22873
Branches 7913 7416 -497
===========================================
- Hits 78289 60134 -18155
+ Misses 20800 16082 -4718
☔ View full report in Codecov by Sentry. |
まだ動くかどうかも試していない 一通り書いて編集可能になっていることを確認しただけ |
多分余計な部分と足りない部分が多い(雑にノート作成と削除あたりからキメラを作ったため) |
検証したところ、それをコミットして、適応させた状態で編集しても、Mastodonでは編集したのが反映されていなかった。なので、連合できていないと思う... |
動作報告助かります |
普通にupdated足してなかった |
もし参照のほう作るなら多分ApNoteServiceのresolveNoteでexistがtrueなときにupdatedAtとtext,cwの書き換えをしてあげる必要があるな |
照会もcreate前提になってる…? |
一緒に送信だけじゃなくて受信や照会も書けるかなと思ったけど結構見るべき点が多い |
機能自体キャンセルする可能性が高まってきたので作業はストップしていただけると🙏 |
OKです、直近で追加の作業はしないです 更新の方は実はできている説がある(検証できてない) あと受信の方は…Mastodonだけじゃなく他が対応し始めてきてるのですぐ出せなくても取り組む必要はあると思うし取り込みたいんですよね |
んー受信対応するとなると実質的に編集機能の実装と同じと思われるから、編集の実装を諦めるのであれば受信も対応したくない感 |
考慮するべきことがいかんせん多すぎる |
削除して編集を推していきたい |
なるほどなあ 実装コストが高いという点では割と元々Updateする前提じゃなかったからという点があるのでメンテナンスのコスト的には爆増するほど複雑な実装にはならない気がしています Misskeyとして削除して編集を推したいのもわかる(私は元々なんなら編集自体には消極的立場なため) 一方で受信に関してはMastodon, Firefish, Sharkeyなども対応しててMisskeyでだけ見える情報が違うとなるのでもう少し検討する余地はあると思っています |
まあ対応するとしてもAP周りのユニットテスト/e2eテストが充実してからかしらね |
(ただ受信に対応するほうが倍は大変なので受信やるなら送信を入れることはそんなに難しくないみたいところはある) |
さすがにテストも書かないといけないなあとは思っていました(それはそう) |
一旦ノート編集機能は撤回されました 🙏🏻 |
What
編集を連合に送信可能にする仕組み
ざっくりUpdateでNoteのObjectの更新を通知する、Noteにupdate属性を足す(updatedはObjectの属性にある)
https://www.w3.org/TR/activitystreams-vocabulary/#dfn-updated:~:text=True-,updated,-URI%3A
Why
編集を残すのであれば連合しないことは混乱を招く
-> すでに連合されているノートで編集ができるので一応書いてみた
Resolve #11929 (comment)
Additional info (optional)
Checklist