瀏覽代碼

On user making, check if we have a user with that uri.

tags/v0.9.9
Roger Braun 7 年之前
父節點
當前提交
d95ac274d6
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      lib/pleroma/web/ostatus/ostatus.ex

+ 6
- 2
lib/pleroma/web/ostatus/ostatus.ex 查看文件

@@ -235,8 +235,12 @@ defmodule Pleroma.Web.OStatus do
info: info,
avatar: info["avatar"]
}
cs = User.remote_user_creation(data)
Repo.insert(cs)
with %User{} = user <- User.get_by_ap_id(data.ap_id) do
{:ok, user}
else _e ->
cs = User.remote_user_creation(data)
Repo.insert(cs)
end
end
end



Loading…
取消
儲存