                 }
             }
         }
-        
+
         if smallRoundedImageData.length > 0 {
             let fileSmallRoundedImage: PFFile = PFFile(data: smallRoundedImageData)
             fileSmallRoundedImage.saveInBackgroundWithBlock { (succeeded, error) in

            PAPCache.sharedCache.setFollowStatus(false, user: user)
        }
    }
 
    // MARK Activities

    class func queryForActivitiesOnPhoto(photo: PFObject, cachePolicy: PFCachePolicy) -> PFQuery {
        let queryLikes: PFQuery = PFQuery(className: kPAPActivityClassKey)
        queryLikes.whereKey(kPAPActivityPhotoKey, equalTo: photo)
        queryLikes.whereKey(kPAPActivityTypeKey, equalTo: kPAPActivityTypeLike)
        
        let queryComments = PFQuery(className: kPAPActivityClassKey)
        queryComments.whereKey(kPAPActivityPhotoKey, equalTo: photo)
        queryComments.whereKey(kPAPActivityTypeKey, equalTo: kPAPActivityTypeComment)
        
        let query = PFQuery.orQueryWithSubqueries([queryLikes,queryComments])
        query.cachePolicy = cachePolicy
        query.includeKey(kPAPActivityFromUserKey)

// FIXME: To be removed! this is synchronous!                    activity.delete()
                    activity.deleteInBackground()
                }

                if completionBlock != nil {
                    completionBlock!(succeeded: true, error: nil)
                }
