diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-02-16 13:12:22 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-02-16 13:12:22 +0100 |
commit | 7839b931f1ec66ea576593f58f7141e8097bb201 (patch) | |
tree | fffcd4aa559995d4ee971b748084eb396c181e01 /Zotlabs/Lib | |
parent | cbf8c4bdb274f8d9c326961b9d0bf0c2a2ac35a0 (diff) | |
download | volse-hubzilla-7839b931f1ec66ea576593f58f7141e8097bb201.tar.gz volse-hubzilla-7839b931f1ec66ea576593f58f7141e8097bb201.tar.bz2 volse-hubzilla-7839b931f1ec66ea576593f58f7141e8097bb201.zip |
make sure we provide a created timestamp for likes and remove the workaround which returned the wrong date format
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 940280572..68ac320ba 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -822,7 +822,8 @@ class Activity { ]; } - $ret['published'] = ((isset($i['created'])) ? datetime_convert('UTC', 'UTC', $i['created'], ATOM_TIME) : datetime_convert()); + $ret['published'] = datetime_convert('UTC', 'UTC', $i['created'], ATOM_TIME); + if (isset($i['created'], $i['edited']) && $i['created'] !== $i['edited']) { $ret['updated'] = datetime_convert('UTC', 'UTC', $i['edited'], ATOM_TIME); if ($ret['type'] === 'Create') { |