fix(app): apply instance branding to system DM (#3355)

This commit is contained in:
Tarek authored and GitHub committed 2026-10-10 20:36:02 +02:00
1 parent 7197371123
commit 6b6ae13919
11 files changed
+178 -12

No files matched your search

@@ -8,6 +8,7 @@ import {applyPatchToRow, buildPatchFromData, executeVersionedUpdate} from '@app/
import type {UserRow} from '@app/api/database/types/UserTypes';
import {EMPTY_USER_ROW, USER_COLUMNS} from '@app/api/database/types/UserTypes';
import {emitAccountChangedIfRelevant} from '@app/api/infrastructure/activity/AccountChangeEvents';
import {getInstanceProductName} from '@app/api/instance/ProductName';
import {User} from '@app/api/models/User';
import {Users} from '@app/api/Tables';
import {shiftGiftExtensionPastPremiumUntil} from '@app/api/user/GiftExtensionShift';
@@ -67,7 +68,7 @@ export class UserDataRepository {
return new User({
...EMPTY_USER_ROW,
user_id: createUserID(FLUXER_BOT_USER_ID),
username: 'Fluxer',
username: getInstanceProductName(),
discriminator: 0,
bot: true,
system: true,