]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/fixup_inboxes.php
get the correct context for apitimelinementions
[quix0rs-gnu-social.git] / scripts / fixup_inboxes.php
index 7397d75d8eecfed65cc3cd78695ba9684e925e1d..2aa5d1690003c938c634e71ef5c631cc709db13f 100755 (executable)
@@ -18,7 +18,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-# Abort if called from a web server
+// Abort if called from a web server
 if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
     print "This script must be run from the command line\n";
     exit();
@@ -76,6 +76,6 @@ while ($user->fetch()) {
     $inbox->free();
     unset($inbox);
     if ($cache) {
-        $cache->delete(common_cache_key('user:notices_with_friends:' . $user->id));
+        $cache->delete(Cache::key('user:notices_with_friends:' . $user->id));
     }
 }