소스 검색

formatter: fix matching osada users

tags/v0.9.9
William Pitcock 5 년 전
부모
커밋
582dbe5c8d
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. +6
    -1
      lib/pleroma/formatter.ex

+ 6
- 1
lib/pleroma/formatter.ex 파일 보기

@@ -248,7 +248,12 @@ defmodule Pleroma.Formatter do
subs =
subs ++
Enum.map(mentions, fn {match, %User{ap_id: ap_id, info: info}, uuid} ->
ap_id = info["source_data"]["url"] || ap_id
ap_id =
if is_binary(info["source_data"]["url"]) do
info["source_data"]["url"]
else
ap_id
end

short_match = String.split(match, "@") |> tl() |> hd()



불러오는 중...
취소
저장