aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Profiles.php
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2020-09-19 23:45:37 +0000
committerMario <mario@mariovavti.com>2020-09-21 10:35:14 +0200
commit34217f5f901ae4dca180bceccef425de1eef4aeb (patch)
treeb9bab1e683317abc15dfe174c72e96abf91f8f6e /Zotlabs/Module/Profiles.php
parent04af502e3a9f360239a0bb4bca46cca1e866d2bf (diff)
downloadvolse-hubzilla-34217f5f901ae4dca180bceccef425de1eef4aeb.tar.gz
volse-hubzilla-34217f5f901ae4dca180bceccef425de1eef4aeb.tar.bz2
volse-hubzilla-34217f5f901ae4dca180bceccef425de1eef4aeb.zip
apply channel name changes to all associated xchans
(cherry picked from commit f2ac1e4b7d2aa4854ed08ded49b2ed2dd10fab59)
Diffstat (limited to 'Zotlabs/Module/Profiles.php')
-rw-r--r--Zotlabs/Module/Profiles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Profiles.php b/Zotlabs/Module/Profiles.php
index 7deceabab..645d74add 100644
--- a/Zotlabs/Module/Profiles.php
+++ b/Zotlabs/Module/Profiles.php
@@ -607,10 +607,10 @@ class Profiles extends \Zotlabs\Web\Controller {
$channel = \App::get_channel();
if($namechanged && $is_default) {
- $r = q("UPDATE xchan SET xchan_name = '%s', xchan_name_date = '%s' WHERE xchan_hash = '%s'",
+ $r = q("UPDATE xchan SET xchan_name = '%s', xchan_name_date = '%s' WHERE xchan_url = '%s'",
dbesc($name),
dbesc(datetime_convert()),
- dbesc($channel['xchan_hash'])
+ dbesc(z_root() . '/channel/' . $channel['xchan_address'])
);
$r = q("UPDATE channel SET channel_name = '%s' WHERE channel_hash = '%s'",
dbesc($name),