2024-08-11 15:51:25 +02:00
|
|
|
export const metadata = {
|
|
|
|
|
title: 'FollowReject',
|
|
|
|
|
description: 'FollowReject lets users reject follow requests',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# FollowReject
|
|
|
|
|
|
|
|
|
|
<Note>
|
|
|
|
|
Refer to the [Follow](/entities/follow) entity for information on how follow relationships work.
|
|
|
|
|
</Note>
|
|
|
|
|
|
|
|
|
|
## Removing followers
|
|
|
|
|
|
|
|
|
|
`FollowReject` can also be used *after* a follow relationship has been established to remove a follower.
|
|
|
|
|
|
|
|
|
|
For example, if Bob requests to follow Alice, this entity is used when:
|
|
|
|
|
- Alice wants to reject Bob's follow request.
|
|
|
|
|
|
|
|
|
|
But it can also be used when Bob is already following Alice, in the case that:
|
|
|
|
|
- Alice wants to remove Bob as a follower.
|
|
|
|
|
|
|
|
|
|
## Entity Definition
|
|
|
|
|
|
2025-05-05 14:08:20 +02:00
|
|
|
<Warning>
|
|
|
|
|
This entity is a [**Transient Entity**](/entities#transient-entities).
|
|
|
|
|
</Warning>
|
|
|
|
|
|
2024-08-11 15:51:25 +02:00
|
|
|
<Row>
|
|
|
|
|
<Col>
|
2024-12-24 14:01:09 +01:00
|
|
|
<Properties name="FollowReject">
|
2025-05-05 14:33:22 +02:00
|
|
|
<Property name="author" type="Reference" required={true} typeLink="/types#reference">
|
|
|
|
|
[Reference](/types#reference) to the `User` considered the 'followee', i.e. the user who is being followed.
|
2024-08-11 15:51:25 +02:00
|
|
|
</Property>
|
2025-05-05 14:33:22 +02:00
|
|
|
<Property name="follower" type="Reference" required={true} typeLink="/types#reference">
|
|
|
|
|
[Reference](/types#reference) to the `User` considered the 'follower', i.e. the user who is trying to follow the author.
|
2024-08-11 15:51:25 +02:00
|
|
|
</Property>
|
|
|
|
|
</Properties>
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
<Col sticky>
|
|
|
|
|
|
|
|
|
|
```jsonc {{ title: 'Example FollowReject' }}
|
|
|
|
|
{
|
|
|
|
|
"type": "FollowReject",
|
2025-04-21 18:17:45 +02:00
|
|
|
"author": "6e0204a2-746c-4972-8602-c4f37fc63bbe",
|
2024-08-11 15:51:25 +02:00
|
|
|
"created_at": "2021-01-01T00:00:00.000Z",
|
2025-04-21 18:17:45 +02:00
|
|
|
"follower": "example.com:02e1e3b2-cb1f-4e4a-b82e-98866bee5de7"
|
2024-08-11 15:51:25 +02:00
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|