 	func fetchNotifications() {
 		API.sharedAPI.fetchNotifications(User.currentUser.id, length: length, page: page) { (notifs) in
 			for notif in notifs {
-				self.notifications.append(notif)
+				self.notifications[notif.type]?.append(notif)
 			}
 			self.isLoadingMore = false
 			DispatchQueue.main.async {


class NotificationCenterViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, NotificationCellDelegate, NotificationDelegate {
	
	var notifications: [TempoNotification] = []
	let length = 20
	var page = 0
	var isLoadingMore = false
	let postHistoryVC = PostHistoryTableViewController()

		
		initializeTableView()
		fetchPostHistory()
		
		notifications[.Follower] = []
		notifications[.Like] = []
	}
	
	override func viewWillAppear(_ animated: Bool) {
