2023-06-30 19:41:35 +00:00
|
|
|
{{ $state := . }}
|
|
|
|
{{ range $i, $activity := .Activities}}
|
|
|
|
<div class="activity">
|
|
|
|
{{ if $activity.Comment }}
|
|
|
|
<div class="title{{ if eq $activity.Comment.Op "unread"}} orangered{{end}}">
|
2023-07-13 13:45:51 +00:00
|
|
|
{{ if and (not $state.User) (not $state.Query) }}
|
2023-06-30 19:41:35 +00:00
|
|
|
<b>comment</b> on
|
|
|
|
{{ end }}
|
2023-07-08 14:44:09 +00:00
|
|
|
<a href="/{{$state.Host}}/post/{{ $activity.Comment.P.Post.ID}}">{{ $activity.Comment.P.Post.Name}}</a>
|
2023-07-13 13:45:51 +00:00
|
|
|
<span class="meta">
|
2023-06-30 19:41:35 +00:00
|
|
|
in
|
2023-07-14 13:55:42 +00:00
|
|
|
<a href="/{{$state.Host}}/c/{{ fullcname $activity.Comment.P.Community }}">
|
|
|
|
c/{{ if $state.HideInstanceNames -}}
|
|
|
|
{{ $activity.Comment.P.Community.Name }}</a>
|
|
|
|
{{ else -}}
|
|
|
|
{{ fullcname $activity.Comment.P.Community }}
|
|
|
|
{{ end }}
|
2023-07-13 13:45:51 +00:00
|
|
|
</span>
|
2023-06-30 19:41:35 +00:00
|
|
|
</div>
|
|
|
|
{{ template "comment.html" $activity.Comment }}
|
|
|
|
{{ else if $activity.Post }}
|
|
|
|
{{ template "post.html" $activity.Post }}
|
|
|
|
{{ else if $activity.Message }}
|
|
|
|
<div class="message">
|
|
|
|
{{ if eq $activity.Message.Creator.ID $state.Session.UserID }}
|
2024-05-10 16:08:20 +00:00
|
|
|
<span class="meta">
|
|
|
|
<b>message</b>
|
2023-06-30 19:41:35 +00:00
|
|
|
to
|
2023-07-14 13:55:42 +00:00
|
|
|
<a href="/{{$state.Host}}/u/{{fullname $activity.Message.Recipient}}">
|
|
|
|
{{- if $state.HideInstanceNames -}}
|
|
|
|
{{ $activity.Message.Recipient.Name }}
|
|
|
|
{{- else -}}
|
|
|
|
{{ fullname $activity.Message.Recipient }}
|
|
|
|
{{- end -}}
|
|
|
|
</a>
|
2023-06-30 19:41:35 +00:00
|
|
|
{{ else }}
|
2024-05-10 16:08:20 +00:00
|
|
|
<span class="meta{{ if not $activity.Message.PrivateMessage.Read }} orangered{{end}}">
|
|
|
|
<b>message</b>
|
2023-06-30 19:41:35 +00:00
|
|
|
from
|
2023-07-14 13:55:42 +00:00
|
|
|
<a href="/{{$state.Host}}/u/{{fullname $activity.Message.Creator}}">
|
|
|
|
{{- if $state.HideInstanceNames -}}
|
|
|
|
{{ $activity.Message.Creator.Name }}
|
|
|
|
{{- else -}}
|
|
|
|
{{ fullname $activity.Message.Creator }}
|
|
|
|
{{- end -}}
|
|
|
|
</a>
|
2023-06-30 19:41:35 +00:00
|
|
|
{{end}}
|
2023-12-17 01:09:35 +00:00
|
|
|
sent {{ humanize $activity.Message.PrivateMessage.Published.Time }}
|
2023-06-30 19:41:35 +00:00
|
|
|
</span>
|
|
|
|
<div>{{ markdown "" $activity.Message.PrivateMessage.Content }}</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|