Skip to content

Commit 28e3636

Browse files
committed
update ff stat api
1 parent 02bef9a commit 28e3636

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,10 @@ app.get("/ap/api/following", async (c) => {
221221

222222
// フォローはユーザー署名のcckvレコード(follows/)がsource of truth。
223223
// フォロー・アンフォロー操作はクライアントがレコードをcommit/deleteすることで行う。
224+
// レスポンス: { actorURI: string, status: 'accepted' | 'pending' }[]
224225
const following = followStore.getFollowing(entity.ccid)
225226
.filter(f => f.status !== 'rejected')
226-
.map(f => f.actorURI);
227+
.map(f => ({ actorURI: f.actorURI, status: f.status as 'accepted' | 'pending' }));
227228

228229
return c.json(following);
229230
});

0 commit comments

Comments
 (0)