mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 16:24:23 +00:00
Fix with expression always matching
This commit is contained in:
parent
e572786dad
commit
97b35e00b0
|
@ -1167,9 +1167,7 @@ defmodule Pleroma.User do
|
||||||
if !is_nil(user) and !User.needs_update?(user) do
|
if !is_nil(user) and !User.needs_update?(user) do
|
||||||
{:ok, user}
|
{:ok, user}
|
||||||
else
|
else
|
||||||
user = fetch_by_ap_id(ap_id)
|
with %User{} = user <- fetch_by_ap_id(ap_id) do
|
||||||
|
|
||||||
with %User{} = user do
|
|
||||||
if Pleroma.Config.get([:fetch_initial_posts, :enabled]) do
|
if Pleroma.Config.get([:fetch_initial_posts, :enabled]) do
|
||||||
{:ok, _} = Task.start(__MODULE__, :fetch_initial_posts, [user])
|
{:ok, _} = Task.start(__MODULE__, :fetch_initial_posts, [user])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue