fix tag feeds: remote activities might not have a summary field
This commit is contained in:
parent
714bf0cb23
commit
f33e89765a
|
@ -72,7 +72,8 @@ def logo(user) do
|
||||||
|
|
||||||
def last_activity(activities), do: List.last(activities)
|
def last_activity(activities), do: List.last(activities)
|
||||||
|
|
||||||
def activity_title(%{"content" => content, "summary" => summary} = data, opts \\ %{}) do
|
def activity_title(%{"content" => content} = data, opts \\ %{}) do
|
||||||
|
summary = Map.get(data, "summary", "")
|
||||||
title =
|
title =
|
||||||
cond do
|
cond do
|
||||||
summary != "" -> summary
|
summary != "" -> summary
|
||||||
|
|
Loading…
Reference in New Issue