undo changes to map_scope (for now, revisit after pending changes to can_comment_on_post() have been widely circulated for a good deal of time)

This commit is contained in:
nobody 2021-11-17 11:26:14 -08:00
parent 9f1951ea7e
commit dccc05c8d4
2 changed files with 3 additions and 5 deletions

View file

@ -1193,8 +1193,9 @@ function map_scope($scope, $strip = false) {
return 'site: ' . App::get_hostname();
case PERMS_PENDING:
return 'any connections';
case PERMS_SPECIFIC:
return 'specific';
// uncomment a few releases after the corresponding changes are made in can_comment_on_post. Here it was done on 2021-11-18
// case PERMS_SPECIFIC:
// return 'specific';
case PERMS_CONTACTS:
default:
return 'contacts';

View file

@ -3255,9 +3255,6 @@ function item_url_replace($channel,&$item,$old,$new,$oldnick = '') {
json_url_replace('/' . $oldnick . '/' ,'/' . $channel['channel_address'] . '/' ,$item['target']);
}
$root_replaced = null;
$nick_replaced = null;
$item['body'] = str_replace($old, $new, $item['body']);
if($oldnick && ($oldnick !== $channel['channel_address'])) {