2020-01-14 18:57:16 +02:00
{{with .Data}}
2023-11-03 17:27:27 +02:00
{{if .Muted}}<details><summary> muted post </summary>{{end}}
2020-01-05 20:55:37 +02:00
<div id="status-{{.ID}}" class="status-container-container">
2019-12-14 12:57:14 +02:00
{{if .Reblog}}
2023-11-03 00:20:55 +02:00
<details>
<summary>
2019-12-14 12:57:14 +02:00
<div class="retweet-info">
2020-02-23 15:26:39 +02:00
<a class="img-link" href="/user/{{.Account.ID}}">
2021-04-07 09:55:11 +03:00
<img class="status-profile-img" src="{{.Account.Avatar}}" title="@{{.Account.Acct}}" alt="avatar" height="24" />
2019-12-20 20:30:20 +02:00
</a>
2023-09-08 20:55:29 +03:00
<bdi class="status-dname">{{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}}</bdi>
2020-09-22 18:42:16 +03:00
<a href="/user/{{.Account.ID}}">
2023-09-08 20:55:29 +03:00
<span class="status-uname">@{{.Account.Acct}}</span>
2020-09-22 18:42:16 +03:00
</a>
2023-11-03 00:20:55 +02:00
retweeteed
2019-12-13 20:08:26 +02:00
</div>
2023-11-03 00:20:55 +02:00
</summary>
2020-01-14 18:57:16 +02:00
{{template "status" (WithContext .Reblog $.Ctx)}}
2023-11-03 00:20:55 +02:00
</details>
2019-12-14 12:57:14 +02:00
{{else}}
2020-01-14 18:57:16 +02:00
{{block "status" (WithContext . $.Ctx)}}
{{with $s := .Data}}
2020-01-08 20:16:06 +02:00
<div class="status-container status-{{.ID}}" data-id="{{.ID}}">
2019-12-22 05:43:25 +02:00
<div class="status-profile-img-container">
2020-02-23 15:26:39 +02:00
<a class="img-link" href="/user/{{.Account.ID}}">
2021-04-07 09:55:11 +03:00
<img class="status-profile-img" src="{{.Account.Avatar}}" title="@{{.Account.Acct}}" alt="avatar" height="48" />
2019-12-20 20:30:20 +02:00
</a>
2019-12-13 20:08:26 +02:00
</div>
2019-12-14 12:57:14 +02:00
<div class="status">
<div class="status-name">
2022-09-19 23:42:58 +03:00
<bdi class="status-dname"> {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} {{if .Account.Bot}}🤖{{end}}</bdi>
2020-02-23 15:26:39 +02:00
<a href="/user/{{.Account.ID}}">
2023-09-08 20:55:29 +03:00
<span class="status-uname">@{{.Account.Acct}}</span>
2019-12-20 20:30:20 +02:00
</a>
2020-02-19 00:15:37 +02:00
<div class="more-container">
2020-02-09 15:42:16 +02:00
<div class="remote-link">
2022-10-31 14:43:36 +02:00
{{if .IDNumbers}} #{{index .IDNumbers .ID}}{{end}} {{.Visibility}} <code title="Status ID">{{.ID}}</code>
2020-02-02 09:24:06 +02:00
</div>
<div class="more-content">
2020-02-19 00:15:37 +02:00
<a class="more-link" href="{{.URL}}" target="_blank">
2020-02-02 09:24:06 +02:00
source
</a>
2021-09-05 20:17:59 +03:00
<a class="more-link" href="/quickreply/{{.ID}} #status - { { . ID } } " >
quickreply
</a>
2020-02-02 09:24:06 +02:00
{{if .Muted}}
2020-02-23 15:26:39 +02:00
<form action="/unmuteconv/{{.ID}}" method="post" target="_self">
2020-02-02 09:24:06 +02:00
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
2021-01-17 07:44:07 +02:00
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
2020-02-19 00:15:37 +02:00
<input type="submit" value="unmute" class="btn-link more-link">
2020-02-02 09:24:06 +02:00
</form>
{{else}}
2020-02-23 15:26:39 +02:00
<form action="/muteconv/{{.ID}}" method="post" target="_self">
2020-02-02 09:24:06 +02:00
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
2021-01-17 07:44:07 +02:00
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
2020-02-19 00:15:37 +02:00
<input type="submit" value="mute" class="btn-link more-link">
2020-02-02 09:24:06 +02:00
</form>
{{end}}
2020-09-27 12:29:17 +03:00
{{if .Bookmarked}}
<form action="/unbookmark/{{.ID}}" method="post" target="_self">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
2021-01-17 07:44:07 +02:00
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
2020-09-27 12:29:17 +03:00
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
<input type="submit" value="unbookmark" class="btn-link more-link">
</form>
{{else}}
<form action="/bookmark/{{.ID}}" method="post" target="_self">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
2021-01-17 07:44:07 +02:00
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
2020-09-27 12:29:17 +03:00
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
<input type="submit" value="bookmark" class="btn-link more-link">
</form>
{{end}}
2020-02-02 10:30:40 +02:00
{{if eq $.Ctx.UserID .Account.ID}}
2022-10-31 14:43:36 +02:00
{{ $ pin := "pin"}} {{if .Pinned}} {{ $ pin = "unpin"}} {{end}}
<form action="/{{ $ pin }}/{{.ID}}" method="post" target="_self">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
<input type="submit" value="{{ $ pin }}" class="btn-link more-link">
</form>
2020-02-23 15:26:39 +02:00
<form action="/delete/{{.ID}}" method="post" target="_self">
2020-02-02 10:30:40 +02:00
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
2021-01-17 07:44:07 +02:00
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
2020-02-19 00:15:37 +02:00
<input type="submit" value="delete" class="btn-link more-link">
2020-02-02 10:30:40 +02:00
</form>
{{end}}
2020-02-02 09:24:06 +02:00
</div>
</div>
2019-12-14 12:57:14 +02:00
</div>
2019-12-19 00:14:02 +02:00
<div class="status-reply-container">
{{if .InReplyToID}}
2020-11-08 15:13:05 +02:00
<a class="status-reply-to-link" href="{{if not .ShowReplies}}/thread/{{.InReplyToID}}{{end}} #status - { { . InReplyToID } } " >
in reply to {{if .IDNumbers}} #{{index .IDNumbers .InReplyToID}}{{end}} {{if .Pleroma.InReplyToAccountAcct}}@{{.Pleroma.InReplyToAccountAcct}}{{else if not .IDNumbers}}{{.InReplyToID}}{{end}}
</a>
2020-06-05 09:27:59 +03:00
{{if index .IDReplies .ID}} <span class="status-reply-info-divider"> - </span> {{end}}
2019-12-19 00:14:02 +02:00
{{end}}
{{if .ShowReplies}}
2020-06-05 09:27:59 +03:00
{{if index .IDReplies .ID}} <span class="status-reply-text"> replies: </span> {{end}}
{{range index .IDReplies .ID}}
2020-11-08 15:13:05 +02:00
<a class="status-reply-link" href=" #status - { { . ID } } " > # {{.Number}}</a>
2019-12-19 00:14:02 +02:00
{{end}}
{{end}}
</div>
2021-08-26 07:55:30 +03:00
{{if (or .Content .SpoilerText)}}
2022-03-30 18:52:30 +03:00
<div class="status-content">
2022-09-19 23:42:58 +03:00
{{if .Sensitive}}[NSFW]<br/>{{end}}
2023-09-08 20:55:29 +03:00
{{- if .SpoilerText}}{{EmojiFilter (HTML .SpoilerText) .Emojis | Raw}}<br/>{{end -}}
2023-11-05 16:46:14 +02:00
{{if .Sensitive}}<details>{{end}}
2023-09-08 20:55:29 +03:00
{{- StatusContentFilter .Content .Emojis .Mentions | Raw -}}
2023-11-05 00:22:24 +02:00
{{if .Pleroma.Quote}}
<details>
<summary>quoted post</summary>
{{template "status" (WithContext .Pleroma.Quote $.Ctx)}}
</details>
{{end}}
2023-11-05 16:46:14 +02:00
{{if .Sensitive}}</details>{{end}}
2022-03-30 18:52:30 +03:00
</div>
2020-01-30 15:56:29 +02:00
{{end}}
2022-10-17 20:01:11 +03:00
{{ $ st_id := .ID}}
{{if .Pleroma.Reactions}}
<div class="pleroma-reactions">
{{range .Pleroma.Reactions}}
2022-10-31 11:45:18 +02:00
{{ $ react := "react"}} {{if .Me}} {{ $ react = "unreact"}} {{end}}
2023-11-06 15:45:04 +02:00
<form id="emoj" action="/{{ $ react }}-with/{{ $ st_id }}?emoji={{.Name}}" method="post" target="_self">
2022-10-17 20:01:11 +03:00
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
2022-10-23 02:43:38 +03:00
{{if .Url}}
2023-11-04 00:25:44 +02:00
<input id="place-{{ $ react }}" type="image" src="{{.Url}}" title="{{.Name}}{{.Count}}*" {{if eq $ react "unreact"}}height=36 width=36 {{else}} height=32 width=32 {{end}} class="pleroma-emoji">
2022-10-23 02:43:38 +03:00
{{else}}
2023-11-04 00:25:44 +02:00
<input id="place-{{ $ react }}" type="submit" value="{{.Name}}{{.Count}}{{if eq $ react "unreact"}}*{{end}}" class="pleroma-emoji">
2022-10-23 02:43:38 +03:00
{{end}}
2022-10-17 20:01:11 +03:00
</form>
{{end}}
</div>
{{end}}
2020-10-25 13:36:00 +02:00
{{if .MediaAttachments}}
2023-11-05 16:46:14 +02:00
{{if .Sensitive}}<details><summary>NSFW attachments</summary>{{end}}
2019-12-14 12:57:14 +02:00
<div class="status-media-container">
2020-02-09 15:42:16 +02:00
{{range .MediaAttachments}}
2020-04-25 12:35:18 +03:00
2020-02-09 15:42:16 +02:00
{{if eq .Type "image"}}
2020-04-25 12:35:18 +03:00
{{if $.Ctx.HideAttachments}}
2021-01-16 20:03:47 +02:00
<a href="{{.URL}}" target="_blank">
2022-03-30 20:59:42 +03:00
[image{{if $ s . Sensitive }}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}]
2021-01-16 20:03:47 +02:00
</a>
2020-04-25 12:35:18 +03:00
{{else}}
2020-05-24 09:44:22 +03:00
<a class="img-link" href="{{.URL}}" target="_blank" title="{{.Description}}">
2023-11-03 13:19:20 +02:00
<img class="status-image" src="{{.PreviewURL}}" alt="status-image" height="240" loading="lazy" />
2020-02-09 15:42:16 +02:00
{{if (and $.Ctx.MaskNSFW $ s . Sensitive )}}
<div class="status-nsfw-overlay"></div>
{{end}}
</a>
2020-04-25 12:35:18 +03:00
{{end}}
2020-02-09 15:42:16 +02:00
{{else if eq .Type "audio"}}
2020-04-25 12:35:18 +03:00
{{if $.Ctx.HideAttachments}}
2021-01-16 20:03:47 +02:00
<a href="{{.URL}}" target="_blank">
2022-03-30 20:59:42 +03:00
[audio{{if $ s . Sensitive }}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}]
2021-01-16 20:03:47 +02:00
</a>
2020-04-25 12:35:18 +03:00
{{else}}
2020-05-24 09:44:22 +03:00
<audio class="status-audio" controls title="{{.Description}}">
2019-12-22 06:25:56 +02:00
<source src="{{.URL}}">
2020-04-25 12:35:18 +03:00
<a href="{{.URL}}" target="_blank"> [audio] </a>
2020-02-09 15:42:16 +02:00
</audio>
2020-04-25 12:35:18 +03:00
{{end}}
2020-02-09 15:42:16 +02:00
{{else if eq .Type "video"}}
2020-04-25 12:35:18 +03:00
{{if $.Ctx.HideAttachments}}
2021-01-16 20:03:47 +02:00
<a href="{{.URL}}" target="_blank">
2022-03-30 20:59:42 +03:00
[video{{if $ s . Sensitive }}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}]
2021-01-16 20:03:47 +02:00
</a>
2020-04-25 12:35:18 +03:00
{{else}}
2020-05-24 09:44:22 +03:00
<div class="status-video-container" title="{{.Description}}">
2020-09-22 07:21:39 +03:00
<video class="status-video" controls height="240">
2020-02-09 15:42:16 +02:00
<source src="{{.URL}}">
2020-04-25 12:35:18 +03:00
<a href="{{.URL}}" target="_blank"> [video] </a>
2020-02-09 15:42:16 +02:00
</video>
{{if (and $.Ctx.MaskNSFW $ s . Sensitive )}}
<div class="status-nsfw-overlay"></div>
{{end}}
</div>
2020-04-25 12:35:18 +03:00
{{end}}
2020-02-09 15:42:16 +02:00
{{else}}
2021-01-16 20:03:47 +02:00
<a href="{{.URL}}" target="_blank">
2022-03-30 20:59:42 +03:00
[attachment{{if $ s . Sensitive }}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}]
2021-01-16 20:03:47 +02:00
</a>
2020-02-09 15:42:16 +02:00
{{end}}
2019-12-22 06:25:56 +02:00
{{end}}
</div>
2023-11-05 16:46:14 +02:00
{{if .Sensitive}}</details>{{end}}
2020-10-25 13:36:00 +02:00
{{end}}
2020-02-09 15:42:16 +02:00
{{if .Poll}}
2020-02-23 15:26:39 +02:00
<form class="poll-form" action="/vote/{{.Poll.ID}}" method="POST" target="_self">
2020-02-09 15:42:16 +02:00
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
2021-01-17 07:44:07 +02:00
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
2020-02-09 15:42:16 +02:00
<input type="hidden" name="status_id" value="{{ $ s . ID }}">
{{range $i, $o := .Poll.Options}}
<div class="poll-option">
{{if (or $ s . Poll . Expired $ s . Poll . Voted )}}
2022-03-30 18:52:30 +03:00
<div> {{EmojiFilter (HTML $ o . Title ) $ s . Emojis | Raw}} - {{ $ o . VotesCount }} votes </div>
2020-02-09 15:42:16 +02:00
{{else}}
<input type="{{if $ s . Poll . Multiple }}checkbox{{else}}radio{{end}}" name="choices"
id="poll-{{ $ s . ID }}-{{ $i}}" value="{{ $i}}">
<label for="poll-{{ $ s . ID }}-{{ $i}}">
2022-03-30 18:52:30 +03:00
{{EmojiFilter (HTML $ o . Title ) $ s . Emojis | Raw}}
2020-02-09 15:42:16 +02:00
</label>
{{end}}
</div>
{{end}}
{{if not (or .Poll.Expired .Poll.Voted)}}
<button type="submit"> Vote </button>
{{end}}
<div class="poll-info">
<span>{{.Poll.VotesCount}} votes</span>
{{if .Poll.Expired}}
<span> - poll expired </span>
2020-02-19 18:33:21 +02:00
{{else if .Poll.ExpiresAt}}
2020-02-09 15:42:16 +02:00
<span>
- poll ends in
<time datetime="{{FormatTimeRFC3339 .Poll.ExpiresAt}}" title="{{FormatTimeRFC822 .Poll.ExpiresAt}}">
{{TimeUntil .Poll.ExpiresAt}}
</time>
</span>
{{end}}
</div>
</form>
2019-12-13 20:08:26 +02:00
{{end}}
2023-11-14 11:15:32 +02:00
<div class="status-action-container">
2023-11-11 20:39:00 +02:00
{{if eq (printf "%.7s" .URL) "/search"}}
<div class="status-action">
2023-11-14 11:15:32 +02:00
<a href="{{.URL}}" target="_blank">Federate!</a>
2023-11-11 20:39:00 +02:00
</div>
{{else}}
2019-12-26 11:11:24 +02:00
<div class="status-action">
2020-02-23 15:26:39 +02:00
<a href="/thread/{{.ID}}?reply=true #status - { { . ID } } " >
2020-01-30 15:56:29 +02:00
reply
2019-12-26 11:11:24 +02:00
</a>
2020-02-23 15:26:39 +02:00
<a class="status-reply-count" href="/thread/{{.ID}} #status - { { . ID } } " {{ if $.Ctx.ThreadInNewTab}}target= " _blank " {{ end}}>
2020-09-02 20:50:48 +03:00
{{if and (not $.Ctx.AntiDopamineMode) .RepliesCount}}
({{DisplayInteractionCount .RepliesCount}})
{{end}}
2019-12-26 11:11:24 +02:00
</a>
</div>
2023-11-11 20:39:00 +02:00
{{end}}
2019-12-26 11:11:24 +02:00
<div class="status-action">
2020-10-19 09:05:22 +03:00
{{ $ rt := "retweet"}} {{if .Reblogged}} {{ $ rt = "unretweet"}} {{end}}
<form class="status-retweet" data-action="{{ $ rt }}" action="/{{ $ rt }}/{{.ID}}" method="post" target="_self">
2022-12-02 03:45:19 +02:00
2020-01-25 12:07:06 +02:00
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
2021-01-17 07:44:07 +02:00
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
2020-01-25 12:07:06 +02:00
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
2022-12-02 03:45:19 +02:00
<div class="more-container">
<input type="submit" value="{{ $ rt }}" class="btn-link"
2021-05-30 09:59:34 +03:00
{{if or (eq .Visibility "private") (eq .Visibility "direct")}}title="this status cannot be retweeted" disabled{{end}}>
2022-12-02 03:45:19 +02:00
<div class="more-content">
{{if or (eq .Visibility "private") (eq .Visibility "direct")}}
Locked
{{else}}
2022-12-02 15:47:28 +02:00
<input type="radio" id="retweet_visibility-{{.ID}}" name="retweet_visibility" value="public" checked>
2022-12-02 03:45:19 +02:00
<label for="retweet_visibility">public</label>
2022-12-02 15:47:28 +02:00
<input type="radio" id="retweet_visibility-{{.ID}}" name="retweet_visibility" value="unlisted">
2022-12-02 03:45:19 +02:00
<label for="retweet_visibility">unlisted</label>
2022-12-02 15:47:28 +02:00
<input type="radio" id="retweet_visibility-{{.ID}}" name="retweet_visibility" value="private">
2022-12-02 03:45:19 +02:00
<label for="retweet_visibility">private</label>
{{end}}
</div>
</div>
2020-10-19 09:05:22 +03:00
<a class="status-retweet-count" href="/retweetedby/{{.ID}}" title="click to see the the list">
{{if and (not $.Ctx.AntiDopamineMode) .ReblogsCount}}
({{DisplayInteractionCount .ReblogsCount}})
{{end}}
</a>
2020-01-04 20:56:47 +02:00
</form>
2019-12-26 11:11:24 +02:00
</div>
<div class="status-action">
2020-10-19 09:05:22 +03:00
{{ $ like := "like"}} {{if .Favourited}} {{ $ like = "unlike"}} {{end}}
<form class="status-like" data-action="{{ $ like }}" action="/{{ $ like }}/{{.ID}}" method="post" target="_self">
2020-01-25 12:07:06 +02:00
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
2021-01-17 07:44:07 +02:00
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
2020-01-25 12:07:06 +02:00
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
2020-10-19 09:05:22 +03:00
<input type="submit" value="{{ $ like }}" class="btn-link">
<a class="status-like-count" href="/likedby/{{.ID}}" title="click to see the the list">
{{if and (not $.Ctx.AntiDopamineMode) .FavouritesCount}}
({{DisplayInteractionCount .FavouritesCount}})
{{end}}
</a>
2020-01-04 20:56:47 +02:00
</form>
2019-12-26 11:11:24 +02:00
</div>
2022-10-19 17:33:43 +03:00
<div class="status-action">
<a href="/reactionspage/{{.ID}}">
reactions
</a>
</div>
2020-09-22 07:21:39 +03:00
<div class="status-action status-action-last">
2020-02-23 15:26:39 +02:00
<a class="status-time" href="{{if not .ShowReplies}}/thread/{{.ID}}{{end}} #status - { { . ID } } "
{{if $.Ctx.ThreadInNewTab}}target="_blank"{{end}}>
2021-11-22 08:40:15 +02:00
<time datetime="{{FormatTimeRFC3339 .CreatedAt.Time}}" title="{{FormatTimeRFC822 .CreatedAt.Time}}">
{{TimeSince .CreatedAt.Time}}
2022-09-27 21:49:15 +03:00
</time>
2019-12-26 11:11:24 +02:00
</a>
2022-09-27 21:49:15 +03:00
{{if .EditedAt}} <time datetime="{{FormatTimeRFC3339 .EditedAt.Time}}" title="{{FormatTimeRFC822 .EditedAt.Time}}">| {{TimeSince .EditedAt.Time}} Edited</time>{{end}}
2019-12-26 11:11:24 +02:00
</div>
2019-12-14 12:57:14 +02:00
</div>
2019-12-13 20:08:26 +02:00
</div>
</div>
2019-12-14 12:57:14 +02:00
{{end}}
{{end}}
2020-01-14 18:57:16 +02:00
{{end}}
2019-12-13 20:08:26 +02:00
</div>
2023-11-03 17:27:27 +02:00
{{if .Muted}}</details>{{end}}
2020-01-14 18:57:16 +02:00
{{end}}