]> git.mxchange.org Git - friendica.git/blobdiff - src/Security/OAuth.php
Cleanup work with the activity types
[friendica.git] / src / Security / OAuth.php
index eb4f68b7fd33bdf0c689a76eb4253707a85a489f..27a3dfa11b2328f83c1cc60f6b86dfe98bafd6e0 100644 (file)
@@ -104,12 +104,12 @@ 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;
        }