I know I've asked this a few times now, but there is a new problem now. When trying to find the id of $post['who'], the suggestion is to use $post['raw']['userid']. The problem is, in the case of "All Activity", for example. the two do not always correlate.
Wouldn't it be simplest to just have a $post['who']['userid'] and $post['who_2']['userid']?
Sorry to bring this up again, but I'll probably have to check the $post['what'] and adjust the userid based on that, which is a bit of a hack.