mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-23 08:27:30 +03:00
caching isDeletable status with commentCache
This commit is contained in:
parent
c1dd573dd4
commit
d4f6b04a41
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user