aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-06 19:17:06 -0700
committerfriendica <info@friendica.com>2014-05-06 19:17:06 -0700
commitf1eafbf47dfd41ef1977736aad156fa6e7c5a964 (patch)
treed621c431986e333801ef3bc7d4d2cfff4884062d
parentcc68e06deee9a7fd5f62bfa0b26fc8b686ffa22c (diff)
downloadvolse-hubzilla-f1eafbf47dfd41ef1977736aad156fa6e7c5a964.tar.gz
volse-hubzilla-f1eafbf47dfd41ef1977736aad156fa6e7c5a964.tar.bz2
volse-hubzilla-f1eafbf47dfd41ef1977736aad156fa6e7c5a964.zip
core fixes to allow statusnet connector to work
-rw-r--r--mod/item.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/item.php b/mod/item.php
index d1952c60e..164b345f0 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -643,11 +643,11 @@ function item_post(&$a) {
$datarray['owner_xchan'] = (($owner_hash) ? $owner_hash : $owner_xchan['xchan_hash']);
$datarray['author_xchan'] = $observer['xchan_hash'];
$datarray['created'] = $created;
- $datarray['edited'] = datetime_convert();
+ $datarray['edited'] = (($orig_post) ? datetime_convert() : $created);
$datarray['expires'] = $expires;
- $datarray['commented'] = datetime_convert();
- $datarray['received'] = datetime_convert();
- $datarray['changed'] = datetime_convert();
+ $datarray['commented'] = (($orig_post) ? datetime_convert() : $created);
+ $datarray['received'] = (($orig_post) ? datetime_convert() : $created);
+ $datarray['changed'] = (($orig_post) ? datetime_convert() : $created);
$datarray['mid'] = $mid;
$datarray['parent_mid'] = $parent_mid;
$datarray['mimetype'] = $mimetype;