You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Threads and posts are core components of r/boards. Defining these structs establishes a consistent model for content management and supports features such as thread creation, post handling, and moderation. These structs should integrate with the Permissions interface to enable role-based actions.
Acceptance Criteria:
Defines the Thread struct with attributes for board reference, creator, title, timestamp, post references, and lock status.
Context:
Threads and posts are core components of
r/boards
. Defining these structs establishes a consistent model for content management and supports features such as thread creation, post handling, and moderation. These structs should integrate with thePermissions
interface to enable role-based actions.Acceptance Criteria:
Defines the
Thread
struct with attributes for board reference, creator, title, timestamp, post references, and lock status.Example
Define the
Post
struct with attributes for thread reference, author, content, timestamp, and moderation flags.Example
Implements basic methods for managing threads and posts, ensuring that:
Post
struct references theThread
it belongs to.Thread
struct can maintain a list of post IDs or references.Implements a
LockThread()
method to mark a thread as locked to prevent new posts from being added.Ensures integration with
Permissions
for locking threads, so only users with the right roles can perform this action.Ensures that the structs are placed within the
r/boards
realm or an appropriate package (TBD).Integrates permission checks for creating and managing threads and posts using
WithPermission()
.The text was updated successfully, but these errors were encountered: