Permalink
Browse files

support Bookmark private-mode users.

  • Loading branch information...
1 parent 6d98555 commit 7d180807b39073fcc3f877c4984afa8b0b9ff603 laiso committed Aug 26, 2009
Showing with 22 additions and 5 deletions.
  1. +2 −5 Classes/HatenaAtomPub.m
  2. +20 −0 patch/support-private-bookmark.patch
View
@@ -340,12 +340,9 @@ - (NSData *)requestMyBookmarkFeed {
}
- (NSData *)requestMyBookmarkFeed:(NSInteger)offset {
- HatenaTouchAppDelegate *hatenaTouchApp = [HatenaTouchAppDelegate sharedHatenaTouchApp];
- UserSettings *userSettings = hatenaTouchApp.userSettings;
- NSString *userName = userSettings.userName;
- NSMutableURLRequest *req = [self makeRequestWithURI:[NSString stringWithFormat:@"http://b.hatena.ne.jp/%@/atomfeed?of=%d", userName, offset]
+ NSMutableURLRequest *req = [self makeRequestWithURI:[NSString stringWithFormat:@"http://b.hatena.ne.jp/atom/feed?of=%d", offset]
method:@"GET"];
-
+
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
NSData *data;
@@ -0,0 +1,20 @@
+diff --git a/Classes/HatenaAtomPub.m b/Classes/HatenaAtomPub.m
+index bd7ee47..9d1787d 100644
+--- a/Classes/HatenaAtomPub.m
++++ b/Classes/HatenaAtomPub.m
+@@ -340,12 +340,9 @@
+ }
+
+ - (NSData *)requestMyBookmarkFeed:(NSInteger)offset {
+- HatenaTouchAppDelegate *hatenaTouchApp = [HatenaTouchAppDelegate sharedHatenaTouchApp];
+- UserSettings *userSettings = hatenaTouchApp.userSettings;
+- NSString *userName = userSettings.userName;
+- NSMutableURLRequest *req = [self makeRequestWithURI:[NSString stringWithFormat:@"http://b.hatena.ne.jp/%@/atomfeed?of=%d", userName, offset]
++ NSMutableURLRequest *req = [self makeRequestWithURI:[NSString stringWithFormat:@"http://b.hatena.ne.jp/atom/feed?of=%d", offset]
+ method:@"GET"];
+-
++
+ [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
+
+ NSData *data;
+

0 comments on commit 7d18080

Please sign in to comment.