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

Social share 支援 Bluesky 平台 #48

Open
Eyre-S opened this issue Oct 27, 2024 · 0 comments
Open

Social share 支援 Bluesky 平台 #48

Eyre-S opened this issue Oct 27, 2024 · 0 comments
Labels
17%source#function About the specific function. 72%level#add New feature to existing function.
Milestone

Comments

@Eyre-S
Copy link
Owner

Eyre-S commented Oct 27, 2024

在 social share 功能上,添加对最近流行的 Bluesky 社交平台的支援。

由于 1.4 已经开发完毕因此此功能不会在 1.4 版本中出现。

Bluesky 的官方 PWA App 的链接是 bsky.app,使用的是一个名为 ATProto 的理论上为分布式社交媒体协议的协议。不过,Bluesky 的官方后端的链接似乎并未给出,同时分享链接也是基于 bsky.app 的域名。

因此我们目前假设所有的 Bluesky 贴文都是通过 bsky.app 作为域名的链接分享的。因此目前我们所支援的域名格式也只需要有一种:

https://bsky.app/profile/{user_id}/post/{post_id}

其中的 {user_id} 为明文的由用户设置的账号代码,由于用户代码可以后期更改,因此并不一定保证链接内的代码的唯一性。

而 {post_id} 为一串随机字符,可以假定为是随机生成的 uid。尽管由于 ATProto 的分布式性质,仍然有可能需要 user_id 才能找到 post_id 对应的帖子。

一些示例 url:

@Eyre-S Eyre-S added 72%level#add New feature to existing function. 17%source#function About the specific function. labels Oct 27, 2024
@Eyre-S Eyre-S added this to the next milestone Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17%source#function About the specific function. 72%level#add New feature to existing function.
Projects
Status: Todo
Development

No branches or pull requests

1 participant