Merge branch 'docs/kyclos' into 'develop'
[akkoma] / lib / pleroma / following_relationship.ex
index 0b0219b82c3b240aa77a486e748eb943a5ba7df4..b8cb3bf0372a3960fcbbc484e77956553fcd86ca 100644 (file)
@@ -58,8 +58,8 @@ defmodule Pleroma.FollowingRelationship do
 
   def unfollow(%User{} = follower, %User{} = following) do
     case get(follower, following) do
-      nil -> {:ok, nil}
       %__MODULE__{} = following_relationship -> Repo.delete(following_relationship)
+      _ -> {:ok, nil}
     end
   end