aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-08 21:06:26 +0000
committerMax Kostikov <max@kostikov.co>2021-03-08 21:06:26 +0000
commit66495e6838ed9c89968c8f33322e974fc58128db (patch)
tree0a4087ab22ad666892ff271a41cb2e89591af742 /Zotlabs
parentefe65e1ba87aed8b92af1e8cc80183f21427505d (diff)
downloadvolse-hubzilla-66495e6838ed9c89968c8f33322e974fc58128db.tar.gz
volse-hubzilla-66495e6838ed9c89968c8f33322e974fc58128db.tar.bz2
volse-hubzilla-66495e6838ed9c89968c8f33322e974fc58128db.zip
Check propeties existance on note decode
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index e5801fba0..4a2de3092 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2114,22 +2114,22 @@ class Activity {
$s['uuid'] = $act->obj['diaspora:guid'];
$s['parent_mid'] = $act->parent_id;
- if ($act->data['published']) {
+ if (array_key_exists('published', $act->data)) {
$s['created'] = datetime_convert('UTC', 'UTC', $act->data['published']);
}
- elseif ($act->obj['published']) {
+ elseif (array_key_exists('published', $act->obj)) {
$s['created'] = datetime_convert('UTC', 'UTC', $act->obj['published']);
}
- if ($act->data['updated']) {
+ if (array_key_exists('updated', $act->data)) {
$s['edited'] = datetime_convert('UTC', 'UTC', $act->data['updated']);
}
- elseif ($act->obj['updated']) {
+ elseif (array_key_exists('updated', $act->obj)) {
$s['edited'] = datetime_convert('UTC', 'UTC', $act->obj['updated']);
}
- if ($act->data['expires']) {
+ if (array_key_exists('expires', $act->data)) {
$s['expires'] = datetime_convert('UTC', 'UTC', $act->data['expires']);
}
- elseif ($act->obj['expires']) {
+ elseif (array_key_exists('expires', $act->obj)) {
$s['expires'] = datetime_convert('UTC', 'UTC', $act->obj['expires']);
}