commit: f33e89765ab10350960c242beee2b9a86e38d984
parent 714bf0cb2332050a3a64c6197dae729cf7de1b95
Author: faried nawaz <faried@gmail.com>
Date: Mon, 6 Mar 2023 00:20:54 +0500
fix tag feeds: remote activities might not have a summary field
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/pleroma/web/feed/feed_view.ex b/lib/pleroma/web/feed/feed_view.ex
@@ -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