X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=a531d40936a82b918d1f179c5174dd1e01edf37d;hb=1d5206d594a76297f36ecbaa85ac1ef46ba57c1d;hp=f40f6ad45d30fb37f3851f55b8bbf7bed8ac8d10;hpb=57ac1e5b927bee679260089165eedc6af2610490;p=friendica.git diff --git a/mod/item.php b/mod/item.php index f40f6ad45d..a531d40936 100644 --- a/mod/item.php +++ b/mod/item.php @@ -1,6 +1,6 @@ getTimezone()); + $scheduled_at = DateTimeFormat::convert($_REQUEST['scheduled_at'], 'UTC', $a->getTimeZone()); if ($scheduled_at > DateTimeFormat::utcNow()) { unset($datarray['created']); unset($datarray['edited']); @@ -777,7 +778,7 @@ function item_post(App $a) { // These notifications are sent if someone else is commenting other your wall if ($contact_record != $author) { if ($toplevel_item_id) { - notification([ + DI::notify()->createFromArray([ 'type' => Notification\Type::COMMENT, 'otype' => Notification\ObjectType::ITEM, 'verb' => Activity::POST, @@ -787,7 +788,7 @@ function item_post(App $a) { 'link' => DI::baseUrl() . '/display/' . urlencode($datarray['guid']), ]); } elseif (empty($forum_contact)) { - notification([ + DI::notify()->createFromArray([ 'type' => Notification\Type::WALL, 'otype' => Notification\ObjectType::ITEM, 'verb' => Activity::POST,