Remove Truth Social-specific features
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
groupMemberSchema,
|
||||
groupRelationshipSchema,
|
||||
groupSchema,
|
||||
groupTagSchema,
|
||||
relationshipSchema,
|
||||
statusSchema,
|
||||
type Account,
|
||||
@@ -14,7 +13,6 @@ import {
|
||||
type Group,
|
||||
type GroupMember,
|
||||
type GroupRelationship,
|
||||
type GroupTag,
|
||||
type Relationship,
|
||||
type Status,
|
||||
Instance,
|
||||
@@ -55,13 +53,6 @@ function buildGroupRelationship(props: PartialDeep<GroupRelationship> = {}): Gro
|
||||
}, props));
|
||||
}
|
||||
|
||||
function buildGroupTag(props: PartialDeep<GroupTag> = {}): GroupTag {
|
||||
return groupTagSchema.parse(Object.assign({
|
||||
id: uuidv4(),
|
||||
name: uuidv4(),
|
||||
}, props));
|
||||
}
|
||||
|
||||
function buildGroupMember(
|
||||
props: PartialDeep<GroupMember> = {},
|
||||
accountProps: PartialDeep<Account> = {},
|
||||
@@ -96,7 +87,6 @@ export {
|
||||
buildGroup,
|
||||
buildGroupMember,
|
||||
buildGroupRelationship,
|
||||
buildGroupTag,
|
||||
buildInstance,
|
||||
buildRelationship,
|
||||
buildStatus,
|
||||
|
||||
@@ -2,20 +2,17 @@
|
||||
{
|
||||
"id": "1",
|
||||
"unread": 0,
|
||||
"created_by_account": "2",
|
||||
"last_message": {
|
||||
"account_id": "2",
|
||||
"chat_id": "85",
|
||||
"content": "last message content",
|
||||
"created_at": "2022-09-28T17:43:01.432Z",
|
||||
"id": "1166",
|
||||
"unread": false,
|
||||
"discarded_at": "2022-09-29T19:09:30.253Z"
|
||||
"unread": false
|
||||
},
|
||||
"created_at": "2022-08-26T14:49:16.360Z",
|
||||
"updated_at": "2022-09-29T19:09:30.257Z",
|
||||
"accepted": true,
|
||||
"discarded_at": null,
|
||||
"account": {
|
||||
"id": "2",
|
||||
"username": "leonard",
|
||||
@@ -25,27 +22,23 @@
|
||||
"avatar": "original.jpg",
|
||||
"avatar_static": "original.jpg",
|
||||
"verified": false,
|
||||
"accepting_messages": true,
|
||||
"chats_onboarded": true
|
||||
"accepting_messages": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "2",
|
||||
"unread": 0,
|
||||
"created_by_account": "3",
|
||||
"last_message": {
|
||||
"account_id": "3",
|
||||
"chat_id": "125",
|
||||
"content": "\u003cp\u003eInventore enim numquam nihil facilis nostrum eum natus provident quis veritatis esse dolorem praesentium rem cumque.\u003c/p\u003e",
|
||||
"created_at": "2022-09-23T14:09:29.625Z",
|
||||
"id": "1033",
|
||||
"unread": false,
|
||||
"discarded_at": null
|
||||
"unread": false
|
||||
},
|
||||
"created_at": "2022-09-22T15:06:49.675Z",
|
||||
"updated_at": "2022-09-23T14:09:29.628Z",
|
||||
"accepted": true,
|
||||
"discarded_at": null,
|
||||
"account": {
|
||||
"id": "3",
|
||||
"username": "sheldon",
|
||||
@@ -55,8 +48,7 @@
|
||||
"avatar": "original.jpg",
|
||||
"avatar_static": "original.jpg",
|
||||
"verified": false,
|
||||
"accepting_messages": true,
|
||||
"chats_onboarded": true
|
||||
"accepting_messages": true
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user