mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Don't break feed if user has no posts.
This commit is contained in:
parent
4649ba2d62
commit
8a07ddef8f
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ defmodule Pleroma.Web.OStatus.FeedRepresenter do
|
||||||
alias Pleroma.Web.OStatus.{UserRepresenter, ActivityRepresenter}
|
alias Pleroma.Web.OStatus.{UserRepresenter, ActivityRepresenter}
|
||||||
|
|
||||||
def to_simple_form(user, activities, users) do
|
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
|
|> NaiveDateTime.to_iso8601
|
||||||
|
|
||||||
h = fn(str) -> [to_charlist(str)] end
|
h = fn(str) -> [to_charlist(str)] end
|
||||||
|
|
Loading…
Reference in a new issue