mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:35:12 +00:00
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:
parent
9f1951ea7e
commit
dccc05c8d4
2 changed files with 3 additions and 5 deletions
|
@ -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';
|
||||
|
|
|
@ -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'])) {
|
||||
|
|
Loading…
Reference in a new issue