mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-30 21:14:12 +00:00 
			
		
		
		
	Don't sneakily disable RSS behind users' backs
Also keeps the database shape consistent with what the ORM model says, because upstream forgot to do that.
This commit is contained in:
		
							parent
							
								
									239393c64f
								
							
						
					
					
						commit
						6478399432
					
				
					 2 changed files with 4 additions and 6 deletions
				
			
		|  | @ -2,9 +2,8 @@ export class AddUserEnableRss1733748798177 { | ||||||
|     name = 'AddUserEnableRss1733748798177' |     name = 'AddUserEnableRss1733748798177' | ||||||
| 
 | 
 | ||||||
|     async up(queryRunner) { |     async up(queryRunner) { | ||||||
| 				// Disable by default, then specifically enable for all existing local users.
 | 				// No, leave RSS enabled by default, WTF guys?
 | ||||||
| 				await queryRunner.query(`ALTER TABLE "user" ADD "enable_rss" boolean NOT NULL DEFAULT false`); | 				await queryRunner.query(`ALTER TABLE "user" ADD "enable_rss" boolean NOT NULL DEFAULT true`); | ||||||
| 				await queryRunner.query(`UPDATE "user" SET "enable_rss" = true WHERE host IS NULL;`) |  | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|     async down(queryRunner) { |     async down(queryRunner) { | ||||||
|  |  | ||||||
|  | @ -329,9 +329,8 @@ export class MiUser { | ||||||
| 	public signupReason: string | null; | 	public signupReason: string | null; | ||||||
| 
 | 
 | ||||||
| 	/** | 	/** | ||||||
| 	 * True if profile RSS feeds are enabled for this user. | 	 * True if profile RSS feeds are enabled for this user. Enabled by default. | ||||||
| 	 * Enabled by default (opt-out) for existing users, to avoid breaking any existing feeds. | 	 * TODO: put the setting for this in the user wizard maybe? | ||||||
| 	 * Disabled by default (opt-in) for newly created users, for privacy. |  | ||||||
| 	 */ | 	 */ | ||||||
| 	@Column('boolean', { | 	@Column('boolean', { | ||||||
| 		name: 'enable_rss', | 		name: 'enable_rss', | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue