Fix deleted pinned posts potentially counting towards the pinned posts limit (#19005)
Fixes #18938
This commit is contained in:
		@@ -21,6 +21,8 @@ class RemoveStatusService < BaseService
 | 
			
		||||
    with_lock("distribute:#{@status.id}") do
 | 
			
		||||
      @status.discard
 | 
			
		||||
 | 
			
		||||
      StatusPin.find_by(status: @status)&.destroy
 | 
			
		||||
 | 
			
		||||
      remove_from_self if @account.local?
 | 
			
		||||
      remove_from_followers
 | 
			
		||||
      remove_from_lists
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user