projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e572786
)
Fix with expression always matching
author
Zachary Dunn
<zdunn76@gmail.com>
Mon, 18 Mar 2019 14:59:52 +0000
(14:59 +0000)
committer
Zachary Dunn
<zdunn76@gmail.com>
Mon, 18 Mar 2019 14:59:52 +0000
(14:59 +0000)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index a29f836bee8c8d61a5ad69531a3c2df33891637b..5e8dfc669ded609bd871d51e24a86395f0abf4a0 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-1167,9
+1167,7
@@
defmodule Pleroma.User do
if !is_nil(user) and !User.needs_update?(user) do
{:ok, user}
else
- user = fetch_by_ap_id(ap_id)
-
- with %User{} = user do
+ with %User{} = user <- fetch_by_ap_id(ap_id) do
if Pleroma.Config.get([:fetch_initial_posts, :enabled]) do
{:ok, _} = Task.start(__MODULE__, :fetch_initial_posts, [user])
end