aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-18 10:26:21 +0000
committerMario <mario@mariovavti.com>2022-01-18 10:26:21 +0000
commit0d1eabbc3386d529fa5005859a0065b9458262b2 (patch)
tree095156e4956690913723cc5011357f6802883dd8
parent1723d4fbd8501e305aadd63465102e460c882e52 (diff)
parentdce249f7a9201cd13aa4f8762e22e4fe5e407bca (diff)
downloadvolse-hubzilla-0d1eabbc3386d529fa5005859a0065b9458262b2.tar.gz
volse-hubzilla-0d1eabbc3386d529fa5005859a0065b9458262b2.tar.bz2
volse-hubzilla-0d1eabbc3386d529fa5005859a0065b9458262b2.zip
Merge branch 'dev' into 7.0RC
-rw-r--r--Zotlabs/Module/Profiles.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Profiles.php b/Zotlabs/Module/Profiles.php
index 325424378..e248cd028 100644
--- a/Zotlabs/Module/Profiles.php
+++ b/Zotlabs/Module/Profiles.php
@@ -579,10 +579,11 @@ class Profiles extends \Zotlabs\Web\Controller {
$channel = \App::get_channel();
if($namechanged && $is_default) {
- q("UPDATE xchan SET xchan_name = '%s', xchan_name_date = '%s' WHERE xchan_hash = '%s'",
+ // change name on all associated xchans by matching the url
+ 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['channel_address'])
);
q("UPDATE channel SET channel_name = '%s' WHERE channel_hash = '%s'",
dbesc($name),