From: Roger Braun Date: Sun, 23 Apr 2017 08:38:24 +0000 (+0200) Subject: Don't break feed if user has no posts. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=8a07ddef8f7193adb3eb4b069ef0231e769a0fb9;p=akkoma Don't break feed if user has no posts. --- diff --git a/lib/pleroma/web/ostatus/feed_representer.ex b/lib/pleroma/web/ostatus/feed_representer.ex index 749cb10d0..14ac3ebf4 100644 --- a/lib/pleroma/web/ostatus/feed_representer.ex +++ b/lib/pleroma/web/ostatus/feed_representer.ex @@ -3,7 +3,7 @@ defmodule Pleroma.Web.OStatus.FeedRepresenter do alias Pleroma.Web.OStatus.{UserRepresenter, ActivityRepresenter} def to_simple_form(user, activities, users) do - most_recent_update = List.first(activities).updated_at + most_recent_update = (List.first(activities) || user).updated_at |> NaiveDateTime.to_iso8601 h = fn(str) -> [to_charlist(str)] end