Sign up notifications handle Mastodon (? maybe Pleroma too...)

This commit is contained in:
localhost_frssoft 2022-10-28 03:13:03 +03:00
parent e6019323f6
commit 9472518169

View File

@ -115,6 +115,19 @@
</div> </div>
{{template "status" (WithContext .Status $.Ctx)}} {{template "status" (WithContext .Status $.Ctx)}}
{{else if eq .Type "admin.sign_up"}}
<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"> Signed up on instance -
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time>
</span>
</div>
{{else}} {{else}}
<div class="retweet-info"> <div class="retweet-info">
<a class="img-link" href="/user/{{.Account.ID}}"> <a class="img-link" href="/user/{{.Account.ID}}">