subsocial icon indicating copy to clipboard operation
subsocial copied to clipboard

Create a Review pallet + UI

Open siman opened this issue 4 years ago • 0 comments

Any account should be able to review any other space on Subsocial. We can reuse Posts with a new extension: Review

Software Desing

pub struct AccountInSpace {
    account: AccountId,
    space: Option<SpaceId>
}

pub enum PostExtension {
    // ... all prev. variants here
    SpaceReview(/* Recipient */ AccountInSpace)
}

decl_storage! {
    pub ReviewIdsByReviewer: double_map (AccountId, Option<SpaceId>) => Vec<PostId>;
    pub ReviewIdsByAccountRecipient: map AccountId => Vec<PostId>;
    pub ReviewIdsBySpaceRecipient: map SpaceId => Vec<PostId>;
}

Prehistory:

Jack Platts (W3F):

image image image

siman avatar Apr 27 '20 07:04 siman