mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 14:28:20 +01:00
57 lines
1.8 KiB
Plaintext
57 lines
1.8 KiB
Plaintext
export const metadata = {
|
|
title: 'Unfollow',
|
|
description: 'The Unfollow entity allows users to unsubscribe from each other',
|
|
}
|
|
|
|
# Unfollow
|
|
|
|
Sometimes, [Users](/entities/user) want to unsubscribe from each other to stop seeing each other's content. The `Unfollow` defines such a change. {{ className: 'lead' }}
|
|
|
|
<Note>
|
|
Refer to the [Follow](/entities/follow) entity for information on how follow relationships work.
|
|
</Note>
|
|
|
|
<Note>
|
|
This is **not** used to remove a follower from a followee.
|
|
|
|
For example, if Bob follows Alice, this entity is used when:
|
|
- Bob wants to stop following Alice.
|
|
|
|
**NOT** when:
|
|
|
|
- Alice wants to remove Bob as a follower.
|
|
|
|
For the latter, use [FollowReject](/entities/follow-reject).
|
|
</Note>
|
|
|
|
## Entity Definition
|
|
|
|
<Warning>
|
|
This entity is a [**Transient Entity**](/entities#transient-entities).
|
|
</Warning>
|
|
|
|
<Row>
|
|
<Col>
|
|
<Properties name="Unfollow">
|
|
<Property name="author" type="Reference" required={true} typeLink="/types#reference">
|
|
[Reference](/types#reference) to the `User` considered the 'follower', i.e. the user who is unsubscribing from the followee.
|
|
</Property>
|
|
<Property name="followee" type="Reference" required={true} typeLink="/types#reference">
|
|
[Reference](/types#reference) to the `User` considered the 'followee', i.e. the user who is being unsubscribed from.
|
|
</Property>
|
|
</Properties>
|
|
</Col>
|
|
|
|
<Col sticky>
|
|
|
|
```jsonc {{ title: 'Example Unfollow' }}
|
|
{
|
|
"type": "Unfollow",
|
|
"author": "6e0204a2-746c-4972-8602-c4f37fc63bbe",
|
|
"created_at": "2021-01-01T00:00:00.000Z",
|
|
"followee": "example.com:02e1e3b2-cb1f-4e4a-b82e-98866bee5de7"
|
|
}
|
|
```
|
|
|
|
</Col>
|
|
</Row> |