fix tag feeds: remote activities might not have a summary field
This commit is contained in:
parent
714bf0cb23
commit
f33e89765a
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ def logo(user) do
|
|||
|
||||
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 =
|
||||
cond do
|
||||
summary != "" -> summary
|
||||
|
|
Loading…
Reference in a new issue