mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-17 16:26:34 +00:00
This is hopefully the final part of PR #4767, rebased and squashed. More thorough federation tests are at https://code.forgejo.org/forgejo/end-to-end/pulls/1276 but the mock has been extended to hopefully cover a good chunk as well. Co-authored-by: Gergely Nagy <forgejo@gergo.csillger.hu> Co-authored-by: Michael Jerger <michael.jerger@meissa-gmbh.de> Co-authored-by: zam <mirco.zachmann@meissa.de> Co-authored-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10380 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: famfo <famfo@famfo.xyz> Co-committed-by: famfo <famfo@famfo.xyz>
26 lines
908 B
Go HTML Template
26 lines
908 B
Go HTML Template
<div id="activity-feed" class="flex-list">
|
|
{{range .FollowingFeeds}}
|
|
<div class="flex-item">
|
|
{{if not (eq .Actor.ID 0)}}
|
|
<div class="flex-item-leading">
|
|
{{ctx.AvatarUtils.Avatar . 48}}
|
|
</div>
|
|
{{end}}
|
|
<div class="flex-item-main">
|
|
<div class="flex-item-title">
|
|
<a class="text muted" href="{{.ActorURI}}">{{.Actor.Name}}</a>
|
|
</div>
|
|
<div class="render-content markup">
|
|
{{.NoteContent | SanitizeHTMLStrict}}
|
|
</div>
|
|
{{if .NoteURL}}
|
|
<div class="flex-item-footer">
|
|
<span class="flex-text-inline">{{svg "octicon-calendar"}}{{ctx.Locale.Tr "user.activitypub_feed.posted_on" (DateUtils.TimeSince .Created)}}</span>
|
|
<a class="flex-text-inline" href="{{.NoteURL}}">{{svg "octicon-link-external"}}{{ctx.Locale.Tr "user.activitypub_feed.original_source"}}</a>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{template "base/paginate" .}}
|
|
</div>
|