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

Shareページでの投稿完了時にpostMessageを発火する #12504

Closed
kakkokari-gtyih opened this issue Nov 29, 2023 · 2 comments · Fixed by #12505
Closed

Shareページでの投稿完了時にpostMessageを発火する #12504

kakkokari-gtyih opened this issue Nov 29, 2023 · 2 comments · Fixed by #12505
Labels
✨Feature This adds/improves/enhances a feature packages/frontend Client side specific issue/PR

Comments

@kakkokari-gtyih
Copy link
Contributor

kakkokari-gtyih commented Nov 29, 2023

Summary

https://developer.mozilla.org/ja/docs/Web/API/Window/postMessage

投稿が完了したら、これを発火

Purpose

iframe、もしくは名前付きポップアップWindowでMisskeyのシェアページを読み込んだ際に、その親サイトと連携を取りやすくする

@kakkokari-gtyih kakkokari-gtyih added the ✨Feature This adds/improves/enhances a feature label Nov 29, 2023
@syuilo syuilo added the packages/frontend Client side specific issue/PR label Nov 29, 2023
@kakkokari-gtyih
Copy link
Contributor Author

kakkokari-gtyih commented Nov 29, 2023

下手に作成したノートの生データとかを渡しても良くない気がするので、単純に「投稿が成功した」という内容を送信するのがよさそう

将来的にpostMessageを使用するときのことを考えて拡張性を残しておくならこういうオブジェクトを渡すのが良いかも?

{
    type: "misskey:shareForm:shareComplete",
    payload: null,
}

@syuilo
Copy link
Member

syuilo commented Nov 29, 2023

良さそう

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 packages/frontend Client side specific issue/PR
Projects
None yet
2 participants