Skip to content
Snippets Groups Projects
Commit 8a07ddef authored by lain's avatar lain
Browse files

Don't break feed if user has no posts.

parent 4649ba2d
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment