diff --git a/web/concrete/models/users_friends.php b/web/concrete/models/users_friends.php
index <HASH>..<HASH> 100644
--- a/web/concrete/models/users_friends.php
+++ b/web/concrete/models/users_friends.php
@@ -64,6 +64,7 @@ class UsersFriends extends Object {
 			$sql = 'INSERT INTO UsersFriends ( friendUID, uID, status, uDateAdded ) values (?, ?, ?, ?)'; 
 		}			
 		$db->query($sql,$vals); 
+		Events::fire('on_user_friend_add', $uID, $friendUID);
 		return true;
 	}	
 	
@@ -74,9 +75,14 @@ class UsersFriends extends Object {
 			if(!$u || !intval($u->uID)) return false;
 			$uID=$u->uID;
 		}
+		Events::fire('on_before_user_friend_remove', $uID, $friendUID);
 		$db = Loader::db();	 
 		$vals = array( $friendUID, $uID);
 		$sql = 'DELETE FROM UsersFriends WHERE friendUID=? AND uID=?'; 
+		$ret = Events::fire('on_user_friend_remove', $uID, $friendUID);
+		if($ret < 0) {
+			return;
+		}
 		$db->query($sql,$vals); 
 		return true;
 	}
friend events


Former-commit-id: dc<I>ed<I>a<I>db1e7d<I>cd<I>a<I>d