issue #172 - non-working delete button showing on pinned post for non logged-in viewer. It shouldn't work so that's correct, but it shouldn't even be visible.

This commit is contained in:
Mike Macgirvin 2024-06-10 22:44:29 -07:00
parent 8865fb83a1
commit 492d6446eb

View file

@ -501,7 +501,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
localize_item($item);
if ($mode === 'stream-new') {
$dropping = true;
$dropping = (bool)local_channel() === (int)$item['uid'];
} else {
$dropping = false;
}