]> git.mxchange.org Git - friendica-addons.git/commitdiff
[twitter] Add logging to item deletion
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 10 Mar 2020 22:55:55 +0000 (18:55 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 10 Mar 2020 22:55:55 +0000 (18:55 -0400)
twitter/twitter.php

index 5bd0206f96c13679a379414697e59bd5f268da5b..da8c3b3691dd86f0ee8171281ac69edb6eb56944 100644 (file)
@@ -808,8 +808,9 @@ function twitter_expire(App $a)
                return;
        }
 
-       $r = Item::select(['id'], ['deleted' => true, 'network' => Protocol::TWITTER]);
+       $r = Item::select(['id', 'guid'], ['deleted' => true, 'network' => Protocol::TWITTER]);
        while ($row = DBA::fetch($r)) {
+               Logger::info('[twitter] Delete expired item', ['id' => $row['id'], 'guid' => $row['guid'], 'callstack' => \Friendica\Core\System::callstack()]);
                DBA::delete('item', ['id' => $row['id']]);
        }
        DBA::close($r);