Skip to content

urlを判別する #7

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

Open
Srgr0 opened this issue Oct 3, 2023 · 3 comments
Open

urlを判別する #7

Srgr0 opened this issue Oct 3, 2023 · 3 comments
Assignees
Labels
enhancement This is very exciting!
Milestone

Comments

@Srgr0
Copy link
Owner

Srgr0 commented Oct 3, 2023

related: #1 , #2 , #3
現状では、与えられたurlがmisskeyプラットフォームの物であることを前提として処理を行っている。
しかし、今後Misskey以外に対応したり( #3 )ページ内のリンクに対応したり( #1 )することで、対応していないurlが与えられることが多くなることが考えられる。
プラットフォームの判別やActivityPubのurl以外を除外する処理において、何らかの方法でurlの判別が必要。

@Srgr0 Srgr0 self-assigned this Oct 3, 2023
@Srgr0 Srgr0 added this to the v1.2.0 milestone Oct 3, 2023
@Srgr0 Srgr0 added the enhancement This is very exciting! label Oct 3, 2023
@Srgr0
Copy link
Owner Author

Srgr0 commented Oct 3, 2023

host/.well-known/nodeinfoでnodeinfoリスト取得して、適当に開いてsoftware/name確認するのが良さそう?
これはAP仕様?

ex. https://misskey.srgr0.com/.well-known/nodeinfo
https://misskey.srgr0.com/nodeinfo/2.1

@Srgr0
Copy link
Owner Author

Srgr0 commented Oct 3, 2023

@Srgr0
Copy link
Owner Author

Srgr0 commented Oct 3, 2023

方針

  1. host/.well-known/nodeinfoを叩く
  2. 期待される形式のjsonが返ってこない場合は終了
  3. 期待される形式のjsonが返ってきた場合、最新のバージョンのnodeinfoのurlを叩く
  4. software/nameを確認して処理分け

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is very exciting!
Projects
None yet
Development

No branches or pull requests

1 participant