enhance: Forward report (#8001)
* implement sending AP Flag object Optionally allow a user to select to forward a report about a remote user to the other instance. This is added in a backwards-compatible way. * add locale string * forward report only for moderators * add switch to moderator UI to forward report * fix report note url * return forwarded status from API apparently forgot to carry this over from my testing environment * object in Flag activity has to be an array For correct interoperability with Pleroma the "object" property of the Flag activity has to be an array. This array will in the future also hold the link to respective notes, so it makes sense to correct this on our side. * Update get-note-menu.ts Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
		
							parent
							
								
									e2d2a4e2e4
								
							
						
					
					
						commit
						cbb7e95d82
					
				
					 10 changed files with 169 additions and 59 deletions
				
			
		
							
								
								
									
										13
									
								
								packages/backend/migration/1637320813000-forwarded-report.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								packages/backend/migration/1637320813000-forwarded-report.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| const { QueryRunner } = require('typeorm'); | ||||
| 
 | ||||
| module.exports = class forwardedReport1637320813000 { | ||||
| 	name = 'forwardedReport1637320813000'; | ||||
| 
 | ||||
| 	async up(queryRunner) { | ||||
| 		await queryRunner.query(`ALTER TABLE "abuse_user_report" ADD "forwarded" boolean NOT NULL DEFAULT false`); | ||||
| 	} | ||||
| 
 | ||||
| 	async down(queryRunner) { | ||||
| 		await queryRunner.query(`ALTER TABLE "abuse_user_report" DROP COLUMN "forwarded"`); | ||||
| 	} | ||||
| }; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue