mirror of
https://github.com/friendica/friendica
synced 2025-04-25 08:30:11 +00:00
rev update
This commit is contained in:
parent
04681618da
commit
2c8d33a6e2
4 changed files with 78 additions and 69 deletions
|
@ -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']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue