rev update

This commit is contained in:
friendica 2013-05-09 01:15:22 -07:00
parent 04681618da
commit 2c8d33a6e2
4 changed files with 78 additions and 69 deletions

View file

@ -268,11 +268,17 @@ function notification($params) {
$datarray['type'] = $params['type'];
$datarray['verb'] = $params['verb'];
$datarray['otype'] = $params['otype'];
$datarray['abort'] = false;
call_hooks('enotify_store', $datarray);
// create notification entry in DB
if($datarray['abort']) {
pop_lang();
return;
}
// create notification entry in DB
if($datarray['store']) {
$r = q("insert into notify (hash,name,url,photo,date,uid,link,parent,type,verb,otype)
values('%s','%s','%s','%s','%s',%d,'%s',%d,%d,'%s','%s')",
dbesc($datarray['hash']),