mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
Now without array_merge
This commit is contained in:
parent
9e3aff9ade
commit
ee8baf00ce
2 changed files with 2 additions and 2 deletions
|
@ -1354,7 +1354,7 @@ class Item extends BaseObject
|
|||
* We have to check several networks since Friendica posts could be repeated
|
||||
* via OStatus (maybe Diasporsa as well)
|
||||
*/
|
||||
if (in_array($item['network'], array_merge(Protocol::FEDERATED ,['']))) {
|
||||
if (empty($item['network']) || in_array($item['network'], Protocol::FEDERATED)) {
|
||||
$condition = ["`uri` = ? AND `uid` = ? AND `network` IN (?, ?, ?)",
|
||||
trim($item['uri']), $item['uid'],
|
||||
Protocol::DIASPORA, Protocol::DFRN, Protocol::OSTATUS];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue