mirror of
https://github.com/friendica/friendica
synced 2025-05-03 02:24:23 +02:00
Fix some warnings on item creation
This commit is contained in:
parent
e6f6087cac
commit
cd3dbad2a8
4 changed files with 28 additions and 4 deletions
|
@ -2079,6 +2079,7 @@ class DFRN
|
|||
// This is my contact on another system, but it's really me.
|
||||
// Turn this into a wall post.
|
||||
$notify = Item::isRemoteSelf($importer, $item);
|
||||
$item['wall'] = (bool)$notify;
|
||||
|
||||
$posted_id = Item::insert($item, $notify);
|
||||
|
||||
|
|
|
@ -624,6 +624,7 @@ class Feed
|
|||
Logger::info('Stored feed', ['item' => $item]);
|
||||
|
||||
$notify = Item::isRemoteSelf($contact, $item);
|
||||
$item['wall'] = (bool)$notify;
|
||||
|
||||
// Distributed items should have a well-formatted URI.
|
||||
// Additionally, we have to avoid conflicts with identical URI between imported feeds and these items.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue