diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-12-19 23:58:42 -0800 |
---|---|---|
committer | bryan newbold <bnewbold@robocracy.org> | 2022-12-20 00:29:58 -0800 |
commit | 8d020c0088dce778c25c43c2572a6c197869a208 (patch) | |
tree | beafc3e4b5ed61371b8f19e9fdf42757fd43f167 /adenosine-pds/src/models.rs | |
parent | 83569230701b17a0c24c1c9bdd197629649d92bc (diff) | |
download | adenosine-8d020c0088dce778c25c43c2572a6c197869a208.tar.gz adenosine-8d020c0088dce778c25c43c2572a6c197869a208.zip |
pds: upvoteCount, not likesCount
Only fixing the display and types (including schema), not actually
implementing vote counting in repo or database.
Diffstat (limited to 'adenosine-pds/src/models.rs')
-rw-r--r-- | adenosine-pds/src/models.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/adenosine-pds/src/models.rs b/adenosine-pds/src/models.rs index 5bf4329..573ff2f 100644 --- a/adenosine-pds/src/models.rs +++ b/adenosine-pds/src/models.rs @@ -178,7 +178,8 @@ pub struct FeedItem { pub embed: Option<Value>, pub replyCount: u64, pub repostCount: u64, - pub likeCount: u64, + pub upvoteCount: u64, + pub downvoteCount: u64, pub indexedAt: String, pub myState: Option<Value>, } @@ -219,8 +220,9 @@ pub struct ThreadItem { pub parent: Option<Box<ThreadItem>>, pub replyCount: u64, pub replies: Option<Vec<ThreadItem>>, - pub likeCount: u64, pub repostCount: u64, + pub upvoteCount: u64, + pub downvoteCount: u64, pub indexedAt: String, pub myState: Option<Value>, } |