Просмотр исходного кода

Fix post crash in Reddit 4.44.0

master
lint 5 лет назад
Родитель
Сommit
a498535187
3 измененных файлов: 12 добавлений и 4 удалений
  1. +1
    -1
      control
  2. +5
    -0
      tweak/Reddit.h
  3. +6
    -3
      tweak/Reddit.xm

+ 1
- 1
control Просмотреть файл

@@ -1,7 +1,7 @@
Package: com.lint.undelete
Name: TFDidThatSay?
Depends: mobilesubstrate
Version: 1.2.0
Version: 1.2.1
Architecture: iphoneos-arm
Description: See "[deleted]" comments and posts without leaving Reddit!
Maintainer: lint <apieceoflint@protonmail.com>

+ 5
- 0
tweak/Reddit.h Просмотреть файл

@@ -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 -- */

+ 6
- 3
tweak/Reddit.xm Просмотреть файл

@@ -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];

Загрузка…
Отмена
Сохранить