diff options
author | Mario <mario@mariovavti.com> | 2021-06-02 17:58:46 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-06-02 17:58:46 +0000 |
commit | 33463152e844f98b933401c394cc0e111893a077 (patch) | |
tree | 6c1af14e98dfe226e05b8b97abaa0de125c04596 /include | |
parent | 50c14d353b30d0dcd7c761884d797dc0fe90f777 (diff) | |
download | volse-hubzilla-33463152e844f98b933401c394cc0e111893a077.tar.gz volse-hubzilla-33463152e844f98b933401c394cc0e111893a077.tar.bz2 volse-hubzilla-33463152e844f98b933401c394cc0e111893a077.zip |
fix issue where a deleted channel will return 404 before returning zotinfo
Diffstat (limited to 'include')
-rw-r--r-- | include/channel.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/channel.php b/include/channel.php index 91e2c37bd..c9391c0d0 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1327,7 +1327,7 @@ function profile_load($nickname, $profile = '') { if(! $user) { logger('profile error: ' . App::$query_string, LOGGER_DEBUG); - notice( t('Requested channel is not available.') . EOL ); + notice( t('Requested channel is not available') . EOL ); App::$error = 404; return; } @@ -2457,7 +2457,7 @@ function channelx_by_nick($nick) { return App::$channel; } - $r = q("SELECT * FROM channel left join xchan on channel_hash = xchan_hash WHERE channel_address = '%s' and channel_removed = 0 LIMIT 1", + $r = q("SELECT * FROM channel left join xchan on channel_hash = xchan_hash WHERE channel_address = '%s' and channel_removed = 0 LIMIT 1", dbesc($nick) ); |