Allow modifying the hide_notifications of a mute with the /api/v1/accounts/:id/mute endpoint
This commit is contained in:
		@@ -75,7 +75,11 @@ module AccountInteractions
 | 
				
			|||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def mute!(other_account, notifications: true)
 | 
					  def mute!(other_account, notifications: true)
 | 
				
			||||||
    mute_relationships.create_with(hide_notifications: notifications).find_or_create_by!(target_account: other_account)
 | 
					    mute = mute_relationships.create_with(hide_notifications: notifications).find_or_create_by!(target_account: other_account)
 | 
				
			||||||
 | 
					    if mute.hide_notifications? != notifications
 | 
				
			||||||
 | 
					      mute.hide_notifications = notifications
 | 
				
			||||||
 | 
					      mute.save!
 | 
				
			||||||
 | 
					    end
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def mute_conversation!(conversation)
 | 
					  def mute_conversation!(conversation)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user