feat: Add platform adapters for various content publishing platforms

- Implemented Dongchedi adapter for user detection and publishing.
- Implemented Jianshu adapter for user detection and publishing.
- Implemented Juejin adapter for user detection and publishing.
- Implemented Qiehao adapter for user detection and publishing.
- Implemented Smzdm adapter for user detection and publishing.
- Implemented Sohuhao adapter for user detection and publishing.
- Implemented Toutiaohao adapter for user detection and publishing.
- Implemented Wangyihao adapter for user detection and publishing.
- Implemented Weixin Gzh adapter for user detection and publishing.
- Implemented Zol adapter for user detection and publishing.
- Added documentation for manual testing of media publishing.
This commit is contained in:
2026-04-03 17:48:30 +08:00
parent 32d6a462cd
commit 134dd063c3
33 changed files with 2722 additions and 457 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import { marked } from "marked";
import type { StoredPlatformState } from "../platforms";
import { normalizeRemoteUrl } from "./common";
import type { AdapterContext, PlatformAdapter, PlatformPublishResult } from "./types";
type ZhihuMeResponse = {
@@ -232,7 +233,7 @@ async function detectZhihu(platform: StoredPlatformState): Promise<StoredPlatfor
connected: true,
platform_uid: uid,
nickname: me.name,
avatar_url: me.avatar_url ?? null,
avatar_url: normalizeRemoteUrl(me.avatar_url),
message: null,
};
} catch (error) {