Skip to content

Commit

Permalink
feat: get outgoing activities only
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryQW committed Oct 17, 2023
1 parent 5a95897 commit 88da973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/snap/src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
*/
export async function getSocialActivities(address: string) {
const resp = await fetch(
`https://testnet.rss3.io/data/accounts/${address}/activities?tag=social`,
`https://testnet.rss3.io/data/accounts/${address}/activities?tag=social&direction=out`,
);
const { data } = (await resp.json()) as { data: Activity[] };
const activities = data.map((item: Activity) => format(item).join(''));
Expand Down

0 comments on commit 88da973

Please sign in to comment.