]> git.mxchange.org Git - friendica.git/blobdiff - src/Security/OAuth.php
Update src/Module/Magic.php
[friendica.git] / src / Security / OAuth.php
index eb4f68b7fd33bdf0c689a76eb4253707a85a489f..2fc8724f709adcec9ccb00fdcfffa0c54ecf6704 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -104,13 +104,13 @@ class OAuth
                }
                Logger::debug('Token found', $token);
 
-//             User::updateLastActivity($token['uid']);
+               User::updateLastActivity($token['uid']);
 
                // Regularly update suggestions
-//             if (Contact\Relation::areSuggestionsOutdated($token['uid'])) {
-//                     Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $token['uid']);
-//             }
-               
+               if (Contact\Relation::areSuggestionsOutdated($token['uid'])) {
+                       Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $token['uid']);
+               }
+
                return $token;
        }