Skip to content
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

連合向けのノートの配信が冗長 #13191

Closed
1 task done
mei23 opened this issue Feb 6, 2024 · 4 comments · Fixed by #13192
Closed
1 task done

連合向けのノートの配信が冗長 #13191

mei23 opened this issue Feb 6, 2024 · 4 comments · Fixed by #13192
Labels
✨Feature This adds/improves/enhances a feature

Comments

@mei23
Copy link
Contributor

mei23 commented Feb 6, 2024

Summary

Noteを配信する際に、AP標準のHTML表現 (content) の他に、Misskey生表現 (_misskey_content, source...) も配信しているが、
少なくとも テキスト, タグ, 絵文字, URL, メンション のみの投稿であれば、AP HTML (content) のみで安全にやりとり出来るはず。
なので、現状ほとんどのノートで冗長な表現で配信している。

また、不要なspanも多い状態である。

  content: '<p><span>テキスト </span><a href="https://example.com/tags/タグ" rel="tag">#タグ</a><span> </span><a href="https://example.com/">https://example.com/</a><span> </span>🍊<span> </span>​:emoji:​<span> </span><a href="https://example.com/@b" class="u-url mention">@b</a></p>',
  _misskey_content: 'テキスト #タグ https://example.com/ 🍊 :emoji: @b',
  source: {
    content: 'テキスト #タグ https://example.com/ 🍊 :emoji: @b',
    mediaType: 'text/x.misskeymarkdown'
  },

Purpose

長いテキストはネットワークトラフィックの他に署名等の付加も増えるので可能なら減らしたい

Do you want to implement this feature yourself?

  • Yes, I will implement this by myself and send a pull request
@mei23 mei23 added the ✨Feature This adds/improves/enhances a feature label Feb 6, 2024
@kakkokari-gtyih
Copy link
Contributor

Related to #10228

@kakkokari-gtyih
Copy link
Contributor

Related to #10228

Duplicateかも

@mei23
Copy link
Contributor Author

mei23 commented Feb 7, 2024

Related to #10228

建てて全然忘れてたわね

@mei23 mei23 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2024
@mei23
Copy link
Contributor Author

mei23 commented Feb 7, 2024

こっちの方がふさわしいのでこっちいかす

@mei23 mei23 reopened this Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants