Ex.Pnut v0.1.0 ExPnut.Posts.Reposts View Source
Reposting is a special action. Reposts act as complete posts in themselves, with the "original" post embedded as an additional object. Unlike normal posts, actions (reply, repost, bookmark) cannot be executed against a repost.
Link to this section Summary
Functions
Delete a repost. The actual repost is completely deleted; it does not leave behind a thread or deleted post to look up.
Repost another post. The repost will show up in followers' streams if they have not seen another repost of the same within the last week, and if the reposted post is not in their recent stream. It is created in its own thread, not the thread of the original post. This increments a user's post count.
Link to this section Functions
delete_repost(client, post_id) View Source
Delete a repost. The actual repost is completely deleted; it does not leave behind a thread or deleted post to look up.
Users can also delete their own reposts even if they no longer have access to the original reposted post (e.g., they were blocked). In that case, the returned post in the data field is simply {"id":POST_ID,"you_reposted":false}.
repost(client, post_id, post_params \\ %PostParams{}) View Source
Repost another post. The repost will show up in followers' streams if they have not seen another repost of the same within the last week, and if the reposted post is not in their recent stream. It is created in its own thread, not the thread of the original post. This increments a user's post count.