fix tag feeds: remote activities might not have a summary field
This commit is contained in:
parent
714bf0cb23
commit
f33e89765a
@ -72,7 +72,8 @@ defmodule Pleroma.Web.Feed.FeedView 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 New Issue
Block a user