Visually separate header.
This commit is contained in:
parent
2ac1ece652
commit
274cc18e8a
5 changed files with 45 additions and 30 deletions
|
|
@ -34,17 +34,17 @@ defmodule Pleroma.Web.StaticFE.StaticFEController do
|
|||
}
|
||||
end
|
||||
|
||||
def represent(%Activity{} = activity, selected) do
|
||||
def represent(%Activity{object: %Object{data: data}} = activity, selected) do
|
||||
{:ok, user} = User.get_or_fetch(activity.object.data["actor"])
|
||||
|
||||
%{
|
||||
user: user,
|
||||
title: get_title(activity.object),
|
||||
content: activity.object.data["content"] || nil,
|
||||
attachment: activity.object.data["attachment"],
|
||||
content: data["content"] || nil,
|
||||
attachment: data["attachment"],
|
||||
link: Helpers.o_status_url(Pleroma.Web.Endpoint, :notice, activity.id),
|
||||
published: activity.object.data["published"],
|
||||
sensitive: activity.object.data["sensitive"],
|
||||
published: data["published"],
|
||||
sensitive: data["sensitive"],
|
||||
selected: selected,
|
||||
counts: get_counts(activity)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEView do
|
|||
alias Calendar.Strftime
|
||||
alias Pleroma.Emoji.Formatter
|
||||
alias Pleroma.User
|
||||
alias Pleroma.Web.Endpoint
|
||||
alias Pleroma.Web.Gettext
|
||||
alias Pleroma.Web.MediaProxy
|
||||
alias Pleroma.Formatter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue