aboutsummaryrefslogtreecommitdiffstats
path: root/mod/follow.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-11 20:11:21 -0700
committerFriendika <info@friendika.com>2011-04-11 20:11:21 -0700
commit0ed2d19ac8e0b624dd4c971dd3f053f7b02b04d4 (patch)
tree71f138137176d37c1d937fd9b08345b256d03821 /mod/follow.php
parentde8b381149c8372dc0305adbc9e025d0abc6b2b0 (diff)
downloadvolse-hubzilla-0ed2d19ac8e0b624dd4c971dd3f053f7b02b04d4.tar.gz
volse-hubzilla-0ed2d19ac8e0b624dd4c971dd3f053f7b02b04d4.tar.bz2
volse-hubzilla-0ed2d19ac8e0b624dd4c971dd3f053f7b02b04d4.zip
death to comment box oddities (a slow death as it will take some time for everybody to upgrade)
Diffstat (limited to 'mod/follow.php')
-rw-r--r--mod/follow.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/mod/follow.php b/mod/follow.php
index f30ecdc92..04858ce52 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -195,6 +195,9 @@ function follow_post(&$a) {
if(! x($vcard,'photo'))
$vcard['photo'] = $a->get_baseurl() . '/images/default-profile.jpg' ;
+
+ $writeable = ((($network === 'stat') && ($notify)) ? 1 : 0);
+
// check if we already have a contact
// the poll url is more reliable than the profile url, as we may have
// indirect links or webfinger links
@@ -217,8 +220,8 @@ function follow_post(&$a) {
else {
// create contact record
$r = q("INSERT INTO `contact` ( `uid`, `created`, `url`, `alias`, `notify`, `poll`, `name`, `nick`, `photo`, `network`, `rel`, `priority`,
- `blocked`, `readonly`, `pending` )
- VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, 0, 0, 0 ) ",
+ `writable`, `blocked`, `readonly`, `pending` )
+ VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, %d, 0, 0, 0 ) ",
intval(local_user()),
dbesc(datetime_convert()),
dbesc($profile),
@@ -230,7 +233,8 @@ function follow_post(&$a) {
dbesc($vcard['photo']),
dbesc($network),
intval(REL_FAN),
- intval($priority)
+ intval($priority),
+ intval($writable)
);
}