1
0
mirror of https://github.com/lint/TFDidThatSay synced 2025-07-04 08:36:45 +00:00

Fix post crash in Reddit 4.44.0

This commit is contained in:
lint
2019-10-09 11:07:41 -04:00
parent c3dea79a28
commit a498535187
3 changed files with 12 additions and 4 deletions

View File

@ -71,12 +71,17 @@
@interface FeedPostDetailCellNode
@property(assign,nonatomic) id textNode;
@property(assign,nonatomic) id delegate;
@property(assign,nonatomic) id contentNode;
@end
@interface FeedPostDetailDelegator
@property(assign,nonatomic) id viewController;
@end
@interface FeedPostContentNode
-(void) configureSelfTextNode;
@end
/* -- Other Interfaces -- */

View File

@ -228,9 +228,12 @@
[post setAuthor:author];
[post setValue:body forKey:@"selfText"];
[[[[self postActionSheetDelegate] controller] feedPostDetailCellNode] configureSelfTextNode];
if ([[[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"] componentsSeparatedByString:@"."][1] integerValue] >= 44){
[[[[[self postActionSheetDelegate] controller] feedPostDetailCellNode] contentNode] configureSelfTextNode];
} else {
[[[[self postActionSheetDelegate] controller] feedPostDetailCellNode] configureSelfTextNode];
}
[request release];
[queue release];
[bodyMutableAttributedText release];