Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32177224
D10109.1765069488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
962 B
Referenced Files
None
Subscribers
None
D10109.1765069488.diff
View Options
diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -32,6 +32,7 @@
permissionsToBitmaskHex,
threadPermissionsFromBitmaskHex,
} from '../permissions/minimally-encoded-thread-permissions.js';
+import { specialRoles } from '../permissions/special-roles.js';
import {
permissionLookup,
getAllThreadPermissions,
@@ -363,12 +364,15 @@
makePermissionsBlob(permissions, null, threadID, threadType),
threadID,
);
- const role: RoleInfo = minimallyEncodeRoleInfo({
- id: `${threadID}/role`,
- name: 'Members',
- permissions,
- isDefault: true,
- });
+ const role: RoleInfo = {
+ ...minimallyEncodeRoleInfo({
+ id: `${threadID}/role`,
+ name: 'Members',
+ permissions,
+ isDefault: true,
+ }),
+ specialRole: specialRoles.DEFAULT_ROLE,
+ };
const rawThreadInfo: RawThreadInfo = {
minimallyEncoded: true,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 1:04 AM (8 h, 37 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5840494
Default Alt Text
D10109.1765069488.diff (962 B)
Attached To
Mode
D10109: [lib] Update thread-utils to include specialRole field
Attached
Detach File
Event Timeline
Log In to Comment