Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Uses Reflecticle's plain_description which shouldn't contain HTML

  • Loading branch information...
commit 2eca1246269c2a9bf065f20ed6e57e799415298f 1 parent 582d379
@alindeman authored
View
1  Reflecticle Activity Feed/ReflecticleActivity.h
@@ -15,6 +15,7 @@
@property (copy, nonatomic) NSNumber *activityId;
@property (retain, nonatomic) ReflecticleUser *owner;
@property (copy, nonatomic) NSString *description;
+@property (copy, nonatomic) NSString *plainDescription;
@property (retain, nonatomic) ReflecticleProject *project;
-(id)initWithJSON:(NSDictionary*)jsonObj;
View
2  Reflecticle Activity Feed/ReflecticleActivity.m
@@ -12,6 +12,7 @@ @implementation ReflecticleActivity
@synthesize activityId;
@synthesize description;
+@synthesize plainDescription;
@synthesize owner;
@synthesize project;
@@ -20,6 +21,7 @@ -(id)initWithJSON:(NSDictionary *)jsonObj {
if (self) {
self.activityId = [jsonObj objectForKey:@"id"];
self.description = [jsonObj objectForKey:@"description"];
+ self.plainDescription = [jsonObj objectForKey:@"plain_description"];
self.owner = [[ReflecticleUser alloc] initWithJSON:[jsonObj objectForKey:@"owner"]];
self.project = [[ReflecticleProject alloc] initWithJSON:[jsonObj objectForKey:@"project"]];
}
View
4 Reflecticle Activity Feed/ReflecticleActivityNotification.m
@@ -28,13 +28,13 @@ -(NSString*)title {
-(NSUserNotification*)asUserNotification {
NSUserNotification* notification = [[NSUserNotification alloc] init];
notification.title = [self title];
- notification.informativeText = activity.description;
+ notification.informativeText = activity.plainDescription;
return notification;
}
-(void)showWithGrowl {
- [GrowlApplicationBridge notifyWithTitle:[self title] description:activity.description notificationName:@"Reflecticle" iconData:[activity.owner imageData] priority:0 isSticky:NO clickContext:activity.activityId];
+ [GrowlApplicationBridge notifyWithTitle:[self title] description:activity.plainDescription notificationName:@"Reflecticle" iconData:[activity.owner imageData] priority:0 isSticky:NO clickContext:activity.activityId];
}
-(void)showWithNotificationCenter {
Please sign in to comment.
Something went wrong with that request. Please try again.