Browse Source

Oh, standards ...

pull/4260/head
Michael 3 years ago
parent
commit
f30275f6db
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/Model/Item.php

+ 4
- 2
src/Model/Item.php View File

@ -72,7 +72,8 @@ class Item
*
* @param integer $itemid Item ID that should be added
*/
public static function addShadow($itemid) {
public static function addShadow($itemid)
{
$fields = ['uid', 'wall', 'private', 'moderated', 'visible', 'contact-id', 'deleted', 'network', 'author-id', 'owner-id'];
$condition = ["`id` = ? AND (`parent` = ? OR `parent` = 0)", $itemid, $itemid];
$item = dba::selectFirst('item', $fields, $condition);
@ -154,7 +155,8 @@ class Item
*
* @param integer $itemid Item ID that should be added
*/
public static function addShadowPost($itemid) {
public static function addShadowPost($itemid)
{
$item = dba::selectFirst('item', [], ['id' => $itemid]);
if (!DBM::is_result($item)) {
return;


Loading…
Cancel
Save