aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-12 16:52:01 -0700
committerfriendica <info@friendica.com>2012-07-12 16:53:42 -0700
commit599f3d29610b2cc509ab51df0f42d154dd70278d (patch)
tree89f882967772931e73418f5f6ef69ba634d4fbf0 /mod
parent3f7b93ce6542219858014c4d6f075fe9b46a18e2 (diff)
downloadvolse-hubzilla-599f3d29610b2cc509ab51df0f42d154dd70278d.tar.gz
volse-hubzilla-599f3d29610b2cc509ab51df0f42d154dd70278d.tar.bz2
volse-hubzilla-599f3d29610b2cc509ab51df0f42d154dd70278d.zip
add plink to profile change notifications
Diffstat (limited to 'mod')
-rw-r--r--mod/profiles.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 4df8a5af7..61f525e0f 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -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");
+ }
}