X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fconversation.php;h=507add97d61ef5f79a9c8db6bc0c21431dea1616;hb=a2532ad7554602d631d9caabb5c74564328d1fff;hp=2db0c22b8018aa71b84408ceb3f8a0cbfdd0ede8;hpb=a65fbcebe785d33a8053645cb73dfd11d032a940;p=friendica.git diff --git a/include/conversation.php b/include/conversation.php index 2db0c22b80..507add97d6 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -312,7 +312,7 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o . "'; \r\n"; } } elseif ($mode === 'profile') { - $items = conversation_add_children($items, false, $order, $uid); + $items = conversation_add_children($items, false, $order, local_user()); if (!$update) { $tab = 'posts'; @@ -400,7 +400,7 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o $formSecurityToken = BaseModule::getFormSecurityToken('contact_action'); if (!empty($items)) { - if (in_array($mode, ['community', 'contacts'])) { + if (in_array($mode, ['community', 'contacts', 'profile'])) { $writable = true; } else { $writable = ($items[0]['uid'] == 0) && in_array($items[0]['network'], Protocol::FEDERATED); @@ -419,7 +419,14 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o $tpl = 'search_item.tpl'; + $uriids = []; + foreach ($items as $item) { + if (in_array($item['uri-id'], $uriids)) { + continue; + } + + $uriids[] = $item['uri-id']; if (!visible_activity($item)) { continue; @@ -1140,10 +1147,10 @@ function status_editor(App $a, array $x = [], $notes_cid = 0, $popup = false) '$placeholdercategory' => Feature::isEnabled(local_user(), 'categories') ? DI::l10n()->t("Categories \x28comma-separated list\x29") : '', '$scheduled_at' => Temporal::getDateTimeField( new DateTime(), - DateTime::createFromFormat(DateTimeFormat::MYSQL, DateTimeFormat::local('now + 6 months')), + new DateTime('now + 6 months'), null, DI::l10n()->t('Scheduled at'), - 'scheduled_at', + 'scheduled_at' ), '$wait' => DI::l10n()->t('Please wait'), '$permset' => DI::l10n()->t('Permission settings'),