caching isDeletable status with commentCache

This commit is contained in:
noumantahir 2022-03-16 02:42:36 +05:00
parent c1dd573dd4
commit d4f6b04a41
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ import { Comment, Vote } from '../reducers/cacheReducer';
comment.author_reputation = comment.author_reputation || 25; comment.author_reputation = comment.author_reputation || 25;
comment.total_payout = comment.total_payout || 0; comment.total_payout = comment.total_payout || 0;
comment.json_metadata = comment.json_metadata || makeJsonMetadataReply(options.parentTags) comment.json_metadata = comment.json_metadata || makeJsonMetadataReply(options.parentTags)
comment.isDeletable = comment.isDeletable || true;
comment.body = renderPostBody({ comment.body = renderPostBody({
author:comment.author, author:comment.author,

View File

@ -20,6 +20,7 @@ export interface Comment {
net_rshares?:number, net_rshares?:number,
active_votes?:Array<{rshares:number, voter:string}>, active_votes?:Array<{rshares:number, voter:string}>,
json_metadata?:any, json_metadata?:any,
isDeletable?:boolean,
created?:string, //handle created and updated separatly created?:string, //handle created and updated separatly
updated?:string, updated?:string,
expiresAt?:number, expiresAt?:number,