X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FNoScrape.php;h=f5c5c725e0344928cca6bbd0f745f94025f0faed;hb=df6cda8a4de30f55c126b95095c026e5b961c27c;hp=bf57ec7765c83ed2825f9e58c3bb860636245e90;hpb=1d8c9276f3aeb3c4cc58c29f3b2defac63223ea9;p=friendica.git diff --git a/src/Module/NoScrape.php b/src/Module/NoScrape.php index bf57ec7765..f5c5c725e0 100644 --- a/src/Module/NoScrape.php +++ b/src/Module/NoScrape.php @@ -1,6 +1,6 @@ $owner['uid'], 'self' => true]; - $contact = DBA::selectFirst('contact', ['last-item'], $condition); - if (DBA::isResult($contact)) { - $last_active = strtotime($contact['last-item']); - } - - $user = User::getOwnerDataById($owner['uid']); - if (DBA::isResult($user)) { - if ($last_active < strtotime($user['last-activity'])) { - $last_active = strtotime($user['last-activity']); - } + $last_active = strtotime($owner['last-item']); + if ($owner['last-activity'] && $last_active < strtotime($owner['last-activity'])) { + $last_active = strtotime($owner['last-activity']); } $json_info['last-activity'] = date('o-W', $last_active);