]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget.php
Preview for Videos and images / Video resolution selection
[friendica.git] / src / Content / Widget.php
index 032b9e7534d3f8a3e05a12ab1c1b067697a5b463..139fd8ebb6131b9566d62c33fbd9bcac2b4ba253 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -463,7 +463,7 @@ class Widget
 
                $cachekey = 'Widget::postedByYear' . $uid . '-' . (int)$wall;
                $dthen = DI::cache()->get($cachekey);
-               if (!empty($dthen)) {
+               if (empty($dthen)) {
                        $dthen = Item::firstPostDate($uid, $wall);
                        DI::cache()->set($cachekey, $dthen, Duration::HOUR);
                }