duplicated items (sort of, item/activity confusion in message id)

This commit is contained in:
Mike Macgirvin 2023-10-11 08:03:43 +11:00
parent e6845e859c
commit 44a192adc6
2 changed files with 2 additions and 2 deletions

View file

@ -150,7 +150,7 @@ class ThreadItem
$edpost = false;
}
if (local_channel() && $observer['xchan_hash'] === $item['owner_xchan']) {
if (local_channel() && ($observer['xchan_hash'] === $item['owner_xchan'] || $observer['xchan_hash'] === $item['author_xchan'])) {
$myconv = true;
} else {
$myconv = false;

View file

@ -112,7 +112,7 @@ class Share extends Controller
$arr['item_wall'] = $item['item_wall'];
$arr['uuid'] = new_uuid();
$arr['mid'] = z_root() . '/item/' . $arr['uuid'];
$arr['mid'] = str_replace('/item/', '/activity/', $arr['mid']);
// $arr['mid'] = str_replace('/item/', '/activity/', $arr['mid']);
$arr['parent_mid'] = $item['mid'];
$mention = '@[zrl=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/zrl]';