post_ui

Interface for viewing and interacting with a post

Post UI Reusable Overview

This module contains information and functionality for a single Post. Users can view the Post's Title, Text, Image, as well as information about the author and if the post has been edited. Logged in users can upvote the post.

Key Workflows

Group Upvote Post is clicked and Current User is logged in and Parent Group's Post's Upvotes doesn't contain Current User

  • Triggers the Upvote post custom workflow

Group Upvote Post is clicked and Current User is logged in and Parent Group's Post's Upvotes contains Current User

  • Triggers the Downvote post custom workflow

Upvote post [Custom workflow]

  • Adds the Current User to the Upvotes list of the Post

  • Updates the Upvotes (num) field of the Post

Downvote post [Custom workflow]

  • Removes the Current User from the Upvotes list of the Post

  • Updates the Upvotes (num) field of the Post

Key Elements

Vaguetime Post Time

  • This element is a plugin element

  • It takes the Timestamp of the Post and the current date/time and outputs the difference in a more readable format, such as "3 days ago" or "just now"

Last updated

Was this helpful?