add plink to profile change notifications

This commit is contained in:
friendica
2012-07-12 16:53:42 -07:00
parent 3f7b93ce65
commit 599f3d2961
3 changed files with 12 additions and 5 deletions
+9 -1
View File
@@ -385,9 +385,17 @@ function profile_activity($changed, $value) {
$arr['deny_gid'] = $a->user['deny_gid'];
$i = item_store($arr);
if($i)
if($i) {
// give it a permanent link
q("update item set plink = '%s' where id = %d limit 1",
dbesc($a->get_baseurl() . '/display/' . $a->user['nickname'] . '/' . $i),
intval($i)
);
proc_run('php',"include/notifier.php","activity","$i");
}
}