Skip to content

Commit e82deb1

Browse files
authored
Mastodon - Get Accounts Following (#19034)
* get-accounts-following * pnpm-lock.yaml * versions * update summary
1 parent 11446b8 commit e82deb1

File tree

28 files changed

+65
-28
lines changed

28 files changed

+65
-28
lines changed

components/mastodon/actions/bookmark-status/bookmark-status.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "mastodon-bookmark-status",
55
name: "Bookmark Status",
66
description: "Privately bookmark a status. [See the docs here](https://docs.joinmastodon.org/methods/statuses/#bookmark)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/mastodon/actions/boost-status/boost-status.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "mastodon-boost-status",
55
name: "Boost Status",
66
description: "Reshare a status on your own profile. [See the docs here](https://docs.joinmastodon.org/methods/statuses/#boost)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/mastodon/actions/delete-status/delete-status.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "mastodon-delete-status",
55
name: "Delete Status",
66
description: "Delete one of your own statuses. [See the docs here](https://docs.joinmastodon.org/methods/statuses/#delete)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
annotations: {
99
destructiveHint: true,
1010
openWorldHint: true,

components/mastodon/actions/edit-status/edit-status.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "mastodon-edit-status",
55
name: "Edit Status",
66
description: "Edit a given status to change its text or sensitivity. [See the docs here](https://docs.joinmastodon.org/methods/statuses/#edit)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
annotations: {
99
destructiveHint: true,
1010
openWorldHint: true,

components/mastodon/actions/favorite-status/favorite-status.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "mastodon-favorite-status",
55
name: "Favorite Status",
66
description: "Add a status to your favourites list. [See the docs here](https://docs.joinmastodon.org/methods/statuses/#favourite)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import mastodon from "../../mastodon.app.mjs";
2+
3+
export default {
4+
key: "mastodon-get-accounts-following",
5+
name: "Get Accounts Following",
6+
description: "Get the accounts that the given account is following. [See the documentation](https://docs.joinmastodon.org/methods/accounts/#following)",
7+
version: "0.0.1",
8+
type: "action",
9+
annotations: {
10+
destructiveHint: false,
11+
openWorldHint: true,
12+
readOnlyHint: true,
13+
},
14+
props: {
15+
mastodon,
16+
max: {
17+
propDefinition: [
18+
mastodon,
19+
"max",
20+
],
21+
},
22+
},
23+
async run({ $ }) {
24+
const accounts = await this.mastodon.paginate(this.mastodon.getAccountsFollowing, {
25+
$,
26+
}, this.max);
27+
$.export("$summary", `Successfully retrieved ${accounts.length} account(s) that the user is following`);
28+
return accounts;
29+
},
30+
};

components/mastodon/actions/mute-conversation/mute-conversation.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "mastodon-mute-conversation",
55
name: "Mute Conversation",
66
description: "Do not receive notifications for the thread that this status is part of. Must be a thread in which you are a participant. [See the docs here](https://docs.joinmastodon.org/methods/statuses/#mute)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/mastodon/actions/perform-search/perform-search.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "mastodon-perform-search",
66
name: "Perform Search",
77
description: "Search for content in accounts, statuses or hashtags. [See the docs here](https://docs.joinmastodon.org/methods/search/#v2)",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
annotations: {
1010
destructiveHint: false,
1111
openWorldHint: true,

components/mastodon/actions/pin-status/pin-status.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "mastodon-pin-status",
55
name: "Pin Status to Profile",
66
description: "Feature one of your own public statuses at the top of your profile. [See the docs here](https://docs.joinmastodon.org/methods/statuses/#pin)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/mastodon/actions/post-multiple-statuses/post-multiple-statuses.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "mastodon-post-multiple-statuses",
77
name: "Post Multiple Statuses",
88
description: "Publish multiple statuses with the given parameters, the subsequent statuses will be posted as a reply of of the first status. [See the documentation](https://docs.joinmastodon.org/methods/statuses/#create)",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
annotations: {
1111
destructiveHint: false,
1212
openWorldHint: true,

0 commit comments

Comments
 (0)