Users $uid can be different than $author

When adding user to OC username and full name can be different:
if they are different, $author which contains full name and $uid which contains username won't match (The user won't be able to 
delete is own post).
OC_User::getDisplayName($uid); - returns full name