Skip to content

Commit 4bcc23a

Browse files
committed
feat: Add id and featuring property to Tag API
1 parent 1ee4a42 commit 4bcc23a

File tree

1 file changed

+4
-1
lines changed
  • src/mastodon/entities/v1

1 file changed

+4
-1
lines changed

src/mastodon/entities/v1/tag.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ export interface TagHistory {
1515
* @see https://docs.joinmastodon.org/entities/tag/
1616
*/
1717
export interface Tag {
18+
/** ID of the hashtag in the database. Useful for constructing URLs for the moderation tools & Admin API. */
19+
id: string;
1820
/** The value of the hashtag after the # sign. */
1921
name: string;
2022
/** A link to the hashtag on the instance. */
2123
url: string;
22-
2324
/** Usage statistics for given days. */
2425
history?: TagHistory[] | null;
2526
/** Whether the current token’s authorized user is following this tag. */
2627
following?: boolean | null;
28+
/** Whether the current token’s authorized user is featuring this tag on their profile. */
29+
featuring?: boolean | null;
2730
}

0 commit comments

Comments
 (0)