feat: show followings

This commit is contained in:
DIYgod
2022-11-02 03:00:16 +00:00
parent b7a4d7320b
commit 2ea826ebf0
5 changed files with 125 additions and 19 deletions
+21
View File
@@ -204,6 +204,27 @@ export const getSiteSubscriptions = async (
return links
}
export const getSiteToSubscriptions = async (
data: {
siteId: string
cursor?: string
},
customUnidata?: Unidata,
) => {
const links = await (customUnidata || unidata).links.get({
source: "Crossbell Link",
identity: data.siteId,
platform: "Crossbell",
cursor: data.cursor,
})
links?.list.map(async (item: any) => {
item.character = item.metadata.to_raw
}) || []
return links
}
export async function updateSite(
payload: {
site: string