From a9b3b28d001941921aa70d37fdc87c758a163a44 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 05 Jun 2026 16:47:03 +0000
Subject: [PATCH] =Some hefty changes to FeedBlock. Transitioning to loading first page in php to save on extra requests. Got a bit to do yet, but I have to work on Northeh for a bit here.
---
inc/managers/InvitationsManager.php | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/inc/managers/InvitationsManager.php b/inc/managers/InvitationsManager.php
index 4ab9654..c8d17a2 100644
--- a/inc/managers/InvitationsManager.php
+++ b/inc/managers/InvitationsManager.php
@@ -25,7 +25,7 @@
return;
}
$this->setInviteConfig();
- $this->cache = Cache::for('invitations');
+ $this->cache = Cache::for('invitations')->user();
add_action('init', [$this, 'registerInvitationExecutors'], 5);
add_action('user_register', [$this, 'checkInvitation']);
@@ -49,9 +49,9 @@
'name' => 'varchar(255) NOT NULL',
'email' => 'varchar(255) NOT NULL',
'invitation_token' => 'varchar(255) NOT NULL',
- 'invited_role' => 'varchar(50) NOT NULL COMMENT \'Role being invited to\'',
- 'status' => 'ENUM(\'pending\',\'accepted\',\'rejected\',\'expired\',\'revoked\') DEFAULT \'pending\'',
- 'inviters' => 'JSON NOT NULL COMMENT \'Array of {user_id, invited_at}\'',
+ 'invited_role' => 'varchar(50) NOT NULL', //Role being invited to
+ 'status' => "ENUM('pending','accepted','rejected','expired','revoked') DEFAULT 'pending'",
+ 'inviters' => 'JSON NOT NULL', // Array of {user_id, invited_at}
'new_user_id' => $table->getUserIDType().' DEFAULT NULL',
'expires_at' => 'datetime NOT NULL',
'accepted_at' => 'datetime DEFAULT NULL',
@@ -67,7 +67,7 @@
$table->setKeys([
['key' => 'PRIMARY', 'value' => '(`id`)'],
- ['key' => 'UNIQUE KEY', 'value' => '`unique_email_role` (`email`, `invited_role`)'],
+ ['key' => 'UNIQUE', 'value' => '`unique_email_role` (`email`, `invited_role`)'],
'`token_lookup` (`invitation_token`)',
'`status_expiry` (`status`, `expires_at`)',
'`role_status` (`invited_role`, `status`)',
--
Gitblit v1.10.0