add: circle stacks

This commit is contained in:
trisua 2025-06-15 16:09:02 -04:00
parent 50704d27a9
commit 56cea83933
27 changed files with 419 additions and 107 deletions

View file

@ -260,10 +260,10 @@ pub struct Post {
pub title: String,
/// If the post is "open". Posts can act as tickets in a forge community.
pub is_open: bool,
/// The ID of the circle this post belongs to. 0 means no circle is connected.
/// The ID of the stack this post belongs to. 0 means no stack is connected.
///
/// If circle is not 0, community should be 0 (and vice versa).
pub circle: usize,
/// If stack is not 0, community should be 0 (and vice versa).
pub stack: usize,
}
impl Post {
@ -291,7 +291,7 @@ impl Post {
poll_id,
title: String::new(),
is_open: true,
circle: 0,
stack: 0,
}
}