mirror of
https://github.com/friendica/friendica
synced 2025-04-23 03:10:12 +00:00
Don't create a user-item entry on default
This commit is contained in:
parent
1193b73125
commit
4002bd9b97
2 changed files with 7 additions and 4 deletions
|
@ -321,7 +321,9 @@ class Item
|
|||
|
||||
$items = Post::select(['id', 'uid', 'uri-id'], $condition);
|
||||
while ($item = Post::fetch($items)) {
|
||||
Post\User::update($item['uri-id'], $item['uid'], ['hidden' => true]);
|
||||
if (in_array($item['uid'], [$uid, 0])) {
|
||||
Post\User::update($item['uri-id'], $uid, ['hidden' => true], true);
|
||||
}
|
||||
|
||||
// "Deleting" global items just means hiding them
|
||||
if ($item['uid'] == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue