Add "enable RSS" user privacy toggle

This commit is contained in:
Hazelnoot 2024-12-09 09:11:39 -05:00
parent 943c6414d8
commit fe37aa2ce8
15 changed files with 56 additions and 0 deletions

View file

@ -311,6 +311,17 @@ export class MiUser {
})
public signupReason: string | null;
/**
* True if profile RSS feeds are enabled for this user.
* Enabled by default (opt-out) for existing users, to avoid breaking any existing feeds.
* Disabled by default (opt-in) for newly created users, for privacy.
*/
@Column('boolean', {
name: 'enable_rss',
default: true,
})
public enableRss = true;
constructor(data: Partial<MiUser>) {
if (data == null) return;