forked from lint/TFDidThatSay
Apollo 1.8 support
This commit is contained in:
@ -8,6 +8,13 @@
|
|||||||
@property(assign,nonatomic) NSString *fullName;
|
@property(assign,nonatomic) NSString *fullName;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface RDKComment
|
||||||
|
@property(assign,nonatomic) NSString *body;
|
||||||
|
@property(assign,nonatomic) NSString *bodyHTML;
|
||||||
|
@property(assign,nonatomic) NSString *author;
|
||||||
|
@property(assign,nonatomic) NSString *fullName;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface CommentCellNode
|
@interface CommentCellNode
|
||||||
@property(assign,nonatomic)id view;
|
@property(assign,nonatomic)id view;
|
||||||
-(BOOL) isSelected;
|
-(BOOL) isSelected;
|
||||||
@ -32,6 +39,16 @@
|
|||||||
@property(strong, nonatomic) NSString *undeleteAuthor;
|
@property(strong, nonatomic) NSString *undeleteAuthor;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface RDKLink
|
||||||
|
@property(assign,nonatomic) NSString *selfText;
|
||||||
|
@property(assign,nonatomic) NSString *author;
|
||||||
|
@property(assign,nonatomic) NSString *fullName;
|
||||||
|
-(BOOL) isSelfPost;
|
||||||
|
|
||||||
|
//custom elements
|
||||||
|
@property(strong, nonatomic) NSString *undeleteAuthor;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface CommentsHeaderCellNode
|
@interface CommentsHeaderCellNode
|
||||||
@property(strong, nonatomic) id undeleteButton;
|
@property(strong, nonatomic) id undeleteButton;
|
||||||
@property(strong, nonatomic) id closestViewController;
|
@property(strong, nonatomic) id closestViewController;
|
||||||
@ -55,6 +72,10 @@
|
|||||||
-(NSInteger) tableView:(id) arg1 numberOfRowsInSection:(NSInteger) arg2;
|
-(NSInteger) tableView:(id) arg1 numberOfRowsInSection:(NSInteger) arg2;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface UIImage (ios13)
|
||||||
|
+ (id)systemImageNamed:(NSString *)arg1;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface IconActionTableViewCell : UITableViewCell
|
@interface IconActionTableViewCell : UITableViewCell
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -33,17 +33,35 @@ id apolloCommentController;
|
|||||||
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
//1.8+, unsure why this is all I needed to add for 1.8 support, the rest of this still works even w/o changing RKComment and RKLink references
|
||||||
|
%hook RDKComment
|
||||||
|
|
||||||
|
- (BOOL)isDeleted {
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL)isModeratorRemoved {
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
%end
|
||||||
|
|
||||||
|
|
||||||
%hook RKLink
|
%hook RKLink
|
||||||
%property(strong, nonatomic) NSString *undeleteAuthor;
|
%property(strong, nonatomic) NSString *undeleteAuthor;
|
||||||
|
|
||||||
- (id)author {
|
- (id)author {
|
||||||
|
return [self undeleteAuthor] ? [self undeleteAuthor] : %orig;
|
||||||
if ([self undeleteAuthor]){
|
|
||||||
return [self undeleteAuthor];
|
|
||||||
} else {
|
|
||||||
return %orig;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%end
|
||||||
|
|
||||||
|
|
||||||
|
%hook RDKLink
|
||||||
|
%property(strong, nonatomic) NSString *undeleteAuthor;
|
||||||
|
|
||||||
|
- (id)author {
|
||||||
|
return [self undeleteAuthor] ? [self undeleteAuthor] : %orig;
|
||||||
}
|
}
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
Reference in New Issue
Block a user