Selaa lähdekoodia

formatting

tags/v0.9.9
William Pitcock 6 vuotta sitten
vanhempi
commit
b832df1e15
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. +2
    -0
      lib/pleroma/web/twitter_api/views/activity_view.ex

+ 2
- 0
lib/pleroma/web/twitter_api/views/activity_view.ex Näytä tiedosto

@@ -262,6 +262,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do

def render_content(%{"type" => "Note"} = object) do
summary = object["summary"]

content =
if !!summary and summary != "" do
"<p>#{summary}</p>#{object["content"]}"
@@ -274,6 +275,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do

def render_content(%{"type" => "Article"} = object) do
summary = object["name"] || object["summary"]

content =
if !!summary and summary != "" do
"<p><a href=\"#{object["url"]}\">#{summary}</a></p>#{object["content"]}"


Loading…
Peruuta
Tallenna