Links

Posts

Here's an overview of posts and how you can get started with integrating them into your applications
A feed is made up of a collection of posts. Users are able to generate different types of posts as well as to react and comment on posts.

Post Description

Name
Data Type
Description
Attributes
postId
String
ID of the post
parentPostId
String
ID of the parent post
postedUserId
String
ID of the user who posted
sharedUserId
String
ID of the user who shared the post
SharedCount
Integer
Number of times the post is shared
targetID
String
ID of the target
targetType
String
Type of target
dataType
String
Data type of post
data
Object
Data of the post
metadata
Object
Metadata of the post
flagCount
Integer
Number of times that the post is flagged
hashFlag
Object
Hash for checking internally if the post is flagged
editedAt
Date
Date/time the post was edited
createdAt
Date
Date/time the post was created
updatedAt
Date
Date/time the post was updated
reactions
Object
Information about the post reactions
reactionsCount
Integer
Number of reactions to the post
myReactions
Array.<String>
Reactions to the post
"like", "love", etc...
commentsCount
Integer
Number of comments to the post
comments
Array.<String>
Comments to the post
children
Array.<String>
Children posts
isDeleted
Boolean
Flag that indicates if the post is deleted. True means post is already deleted.
hasFlaggedComment
Boolean
Flag that indicates if the post has flagged comments. True means it has.
hasFlaggedChildren
Boolean
Flag that indicates if the post has flagged children. True means it has.
feedId
String
ID of the post's feed
required
String

Post Repository

Users are also able to interact with posts using the PostRepository. This repository's main purpose is to manage posts, reactions, and flags on a post.
import { PostRepository } from '@amityco/js-sdk';
Last modified 7mo ago