Support visibility edited status

This commit is contained in:
localhost_frssoft 2022-09-27 21:49:15 +03:00
parent 9621a49db8
commit c4a1f5e3d5
2 changed files with 17 additions and 1 deletions

View File

@ -101,6 +101,20 @@
</div>
{{template "status" (WithContext .Status $.Ctx)}}
{{else if eq .Type "update"}}
<div class="retweet-info">
<a class="img-link" href="/user/{{.Account.ID}}">
<img class="status-profile-img" src="{{.Account.Avatar}}" title="@{{.Account.Acct}}" alt="avatar" height="48" />
</a>
<a href="/user/{{.Account.ID}}">
<span class="status-uname"> @{{.Account.Acct}} </span>
</a>
<span class="notification-text"> edited own post -
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time>
</span>
</div>
{{template "status" (WithContext .Status $.Ctx)}}
{{else}}
<div class="retweet-info">
<a class="img-link" href="/user/{{.Account.ID}}">

View File

@ -233,8 +233,10 @@
{{if $.Ctx.ThreadInNewTab}}target="_blank"{{end}}>
<time datetime="{{FormatTimeRFC3339 .CreatedAt.Time}}" title="{{FormatTimeRFC822 .CreatedAt.Time}}">
{{TimeSince .CreatedAt.Time}}
</time>
</time>
</a>
{{if .EditedAt}} <time datetime="{{FormatTimeRFC3339 .EditedAt.Time}}" title="{{FormatTimeRFC822 .EditedAt.Time}}">| {{TimeSince .EditedAt.Time}} Edited</time>{{end}}
</div>
</div>
</div>