浏览代码

Update incoming new avatars.

tags/v0.9.9
Roger Braun 7 年前
父节点
当前提交
96014f8e0b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      lib/pleroma/web/ostatus/ostatus.ex

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

@@ -42,8 +42,8 @@ defmodule Pleroma.Web.OStatus do
def handle_note(entry, doc \\ nil) do
content_html = string_from_xpath("/entry/content[1]", entry)

uri = string_from_xpath("/entry/author/uri[1]", entry) || string_from_xpath("/feed/author/uri[1]", doc)
{:ok, actor} = find_or_make_user(uri)
[author] = :xmerl_xpath.string('//author[1]', doc)
{:ok, actor} = find_make_or_update_user(author)

context = (string_from_xpath("/entry/ostatus:conversation[1]", entry) || "") |> String.trim
context = if String.length(context) > 0 do


正在加载...
取消
保存