File tree 1 file changed +4
-0
lines changed 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2616,12 +2616,16 @@ export class DbAdapter {
2616
2616
const FREEFEED_START_DATE = '2015-05-04' ;
2617
2617
2618
2618
const restored_posts = await this . database ( 'posts' ) . count ( 'id' ) . where ( 'created_at' , '<' , FREEFEED_START_DATE ) ;
2619
+ const restored_comments = await this . database ( 'comments' ) . count ( 'id' ) . where ( 'created_at' , '<' , FREEFEED_START_DATE ) ;
2620
+ const hidden_comments = await this . database ( 'hidden_comments' ) . count ( 'comment_id' ) ;
2619
2621
const restore_requests_completed = await this . database ( 'archives' ) . count ( 'user_id' ) . where ( 'recovery_status' , '=' , 2 ) ;
2620
2622
const restore_requests_pending = await this . database ( 'archives' ) . count ( 'user_id' ) . where ( 'recovery_status' , '=' , 1 ) ;
2621
2623
const users_with_restored_comments = await this . database ( 'archives' ) . count ( 'user_id' ) . where ( 'restore_comments_and_likes' , true ) ;
2622
2624
2623
2625
return [ {
2624
2626
'restored_posts' : restored_posts [ 0 ] . count ,
2627
+ 'restored_comments' : restored_comments [ 0 ] . count ,
2628
+ 'hidden_comments' : hidden_comments [ 0 ] . count ,
2625
2629
'restore_requests_completed' : restore_requests_completed [ 0 ] . count ,
2626
2630
'restore_requests_pending' : restore_requests_pending [ 0 ] . count ,
2627
2631
'users_with_restored_comments' : users_with_restored_comments [ 0 ] . count
You can’t perform that action at this time.
0 commit comments