Skip to content

Commit de3d50a

Browse files
committed
Fix Welcome post not showing on new server
1 parent afb5fab commit de3d50a

File tree

8 files changed

+3239
-3221
lines changed

8 files changed

+3239
-3221
lines changed

Sources/WCBoards.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,8 @@ - (void)accountsControllerAccountsDidChange:(NSNotification *)notification {
18511851
- (void)boardsDidChangeUnreadCount:(NSNotification *)notification {
18521852
NSArray *threads;
18531853
NSSet *readIDs;
1854+
1855+
NSLog(@"boardsDidChangeUnreadCount");
18541856

18551857
threads = nil;
18561858

@@ -4414,7 +4416,7 @@ - (NSString *)JSONObjects {
44144416
[readIDs addObject:[post postID]];
44154417
[posts addObject:[self _JSONProxyForPost:post]];
44164418
}
4417-
4419+
44184420
jsonString = [[SBJson4Writer writer] stringWithObject:posts];
44194421

44204422
[thread setLoaded:YES];

Templates/Neo/htdocs/js/boards.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,20 @@ $(document).ready(function(){
190190

191191
var controller = window.Controller;
192192
var posts = eval(controller.JSONObjects());
193-
193+
194194
for (var i in posts) {
195195
_appendPost(posts[i]);
196196
_scrollToBottom();
197197
}
198198

199-
$("img").load(function() {
200-
_scrollToBottom();
199+
if ( $("img").length && $("img").attr("src") != "data:image/tiff;base64," ) {
200+
$("img").load(function() {
201+
_scrollToBottom();
202+
$('#thread-content').fadeIn();
203+
});
204+
} else {
201205
$('#thread-content').fadeIn();
202-
});
206+
}
203207
});
204208

205209

WiredClient.xcodeproj/xcuserdata/nark.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<key>Localize Nibs.xcscheme_^#shared#^_</key>
88
<dict>
99
<key>orderHint</key>
10-
<integer>23</integer>
10+
<integer>25</integer>
1111
</dict>
1212
<key>Localize Strings.xcscheme_^#shared#^_</key>
1313
<dict>
1414
<key>orderHint</key>
15-
<integer>25</integer>
15+
<integer>23</integer>
1616
</dict>
1717
<key>Neo.xcscheme_^#shared#^_</key>
1818
<dict>

0 commit comments

Comments
 (0)