qa_db_event_create_for_entity(QA_ENTITY_QUESTION,$questionid,$questionid,$lastpostid,$updatetype,$lastuserid,$timestamp);// anyone who favorited the question
if(isset($lastuserid)&&!QA_FINAL_EXTERNAL_USERS)
qa_db_event_create_for_entity(QA_ENTITY_USER,$lastuserid,$questionid,$lastpostid,$updatetype,$lastuserid,$timestamp);// anyone who favorited the user who did it
* that category or being moved to it later on), along with all of its ancestor categories. The event of type
/*
* $updatetype relates to the question $questionid, and was caused by $lastuserid. Pass a unix $timestamp for the event
Add appropriate events to the database for an action performed on a question. The event of type $updatetype relates
* time or leave as null to use now.
to $lastpostid whose antecedent question is $questionid, and was caused by $lastuserid. Pass a unix $timestamp for
* @param $categoryid
the event time or leave as null to use now. This will add an event to $questionid's and $lastuserid's streams. If
* @param $questionid
$otheruserid is set, it will also add an notification-style event for that user, unless they are the one who did it.
* @param $updatetype
*/
* @param $lastuserid
{
* @param $timestamp
qa_db_event_create_for_entity(QA_ENTITY_QUESTION,$questionid,$questionid,$lastpostid,$updatetype,$lastuserid,$timestamp);// anyone who favorited the question
qa_db_event_create_for_entity(QA_ENTITY_USER,$lastuserid,$questionid,$lastpostid,$updatetype,$lastuserid,$timestamp);// anyone who favorited the user who did it