aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-08 19:28:57 -0700
committerzotlabs <mike@macgirvin.com>2018-04-08 19:28:57 -0700
commit6ce3ca1ce02a535938812372ece9377242c2eaa4 (patch)
tree098007fe7aeb1c890a0f0c0842777785e27681b2 /include/channel.php
parentc3cd613f427b6aef483fce0c5bd1cebcefba8891 (diff)
downloadvolse-hubzilla-6ce3ca1ce02a535938812372ece9377242c2eaa4.tar.gz
volse-hubzilla-6ce3ca1ce02a535938812372ece9377242c2eaa4.tar.bz2
volse-hubzilla-6ce3ca1ce02a535938812372ece9377242c2eaa4.zip
anon_identity_init: put anonymous commenters in network 'anon' so that they can be easily distinguished from federated network members and handled appropriately.
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/channel.php b/include/channel.php
index 4a87ef602..296f84c7b 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -2725,7 +2725,7 @@ function anon_identity_init($reqvars) {
$hash = hash('md5',$anon_email);
- $x = q("select * from xchan where xchan_guid = '%s' and xchan_hash = '%s' and xchan_network = 'unknown' limit 1",
+ $x = q("select * from xchan where xchan_guid = '%s' and xchan_hash = '%s' and xchan_network = 'anon' limit 1",
dbesc($anon_email),
dbesc($hash)
);
@@ -2736,12 +2736,12 @@ function anon_identity_init($reqvars) {
'xchan_hash' => $hash,
'xchan_name' => $anon_name,
'xchan_url' => $anon_url,
- 'xchan_network' => 'unknown',
+ 'xchan_network' => 'anon',
'xchan_name_date' => datetime_convert()
]);
- $x = q("select * from xchan where xchan_guid = '%s' and xchan_hash = '%s' and xchan_network = 'unknown' limit 1",
+ $x = q("select * from xchan where xchan_guid = '%s' and xchan_hash = '%s' and xchan_network = 'anon' limit 1",
dbesc($anon_email),
dbesc($hash)
);