mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	- Updated mail notification design to be a bit prettier, and extracted text to new lang file for translation. - Added debounce logic for page update notifications. - Fixed watch options not being filtered to current user.
		
			
				
	
	
		
			18 lines
		
	
	
		
			457 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			457 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace BookStack\Activity\Notifications\Handlers;
 | 
						|
 | 
						|
use BookStack\Activity\Models\Activity;
 | 
						|
use BookStack\Activity\Models\Loggable;
 | 
						|
use BookStack\Users\Models\User;
 | 
						|
 | 
						|
interface NotificationHandler
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Run this handler.
 | 
						|
     * Provides the activity, related activity detail/model
 | 
						|
     * along with the user that triggered the activity.
 | 
						|
     */
 | 
						|
    public function handle(Activity $activity, string|Loggable $detail, User $user): void;
 | 
						|
}
 |