| 
							
							
								 Lunny Xiao | e2277d07ca | Move some asymkey functions to service layer (#28894) After the moving, all models will not depend on `util.Rename` so that I
can do next step refactoring. | 2024-03-04 08:57:39 +00:00 |  | 
			
				
					| 
							
							
								 KN4CK3R | c337ff0ec7 | Add user blocking (#29028) Fixes #17453
This PR adds the abbility to block a user from a personal account or
organization to restrict how the blocked user can interact with the
blocker. The docs explain what's the consequence of blocking a user.
Screenshots:



---------
Co-authored-by: Lauris BH <lauris@nix.lv> | 2024-03-04 08:16:03 +00:00 |  | 
			
				
					| 
							
							
								 Lunny Xiao | df1e7d0067 | Use db.Find instead of writing methods for every object (#28084) For those simple objects, it's unnecessary to write the find and count
methods again and again. | 2023-11-24 03:49:41 +00:00 |  | 
			
				
					| 
							
							
								 6543 | e83f2cbbac | Add doctor dbconsistency fix to delete repos with no owner (#27290) to address #27273
replace #24873 | 2023-10-19 15:20:52 +02:00 |  | 
			
				
					| 
							
							
								 JakobDev | 3dc0c962bf | Delete repos of org when purge delete user (#27273) Fixes https://codeberg.org/forgejo/forgejo/issues/1514
I had to remove `RenameOrganization` to avoid circular import.
We should really add some foreign keys to the database. | 2023-10-19 13:16:11 +00:00 |  | 
			
				
					| 
							
							
								 Lunny Xiao | 9852c92e9a | Remove unnecessary parameter (#27671) | 2023-10-18 15:03:10 +00:00 |  | 
			
				
					| 
							
							
								 JakobDev | 7047df36d4 | Another round of db.DefaultContextrefactor (#27103)Part of #27065
---------
Co-authored-by: KN4CK3R <admin@oldschoolhack.me> | 2023-09-25 13:17:37 +00:00 |  | 
			
				
					| 
							
							
								 JakobDev | c548dde205 | More refactoring of db.DefaultContext(#27083)Next step of #27065 | 2023-09-15 06:13:19 +00:00 |  | 
			
				
					| 
							
							
								 Lunny Xiao | 4f32abaf94 | move repository deletion to service layer (#26948) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> | 2023-09-08 04:51:15 +00:00 |  |