projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b79871
)
FollowingRelationship: Remove meaningless change
author
lain
<lain@soykaf.club>
Wed, 3 Jun 2020 12:40:44 +0000
(14:40 +0200)
committer
lain
<lain@soykaf.club>
Wed, 3 Jun 2020 12:40:44 +0000
(14:40 +0200)
lib/pleroma/following_relationship.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/following_relationship.ex
b/lib/pleroma/following_relationship.ex
index 0343a20d44b5cf1b6a939cf5eff76c79e4418674..3a3082e728037e265bc56a55883f8df7f5e36fe9 100644
(file)
--- a/
lib/pleroma/following_relationship.ex
+++ b/
lib/pleroma/following_relationship.ex
@@
-62,13
+62,10
@@
defmodule Pleroma.FollowingRelationship do
follow(follower, following, state)
following_relationship ->
- {:ok, relationship} =
- following_relationship
- |> cast(%{state: state}, [:state])
- |> validate_required([:state])
- |> Repo.update()
-
- {:ok, relationship}
+ following_relationship
+ |> cast(%{state: state}, [:state])
+ |> validate_required([:state])
+ |> Repo.update()
end
end