mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Client API endpoints + v. basic web view for pinned posts (#1547)
* implement status pin client api + web handler * make test names + comments more descriptive * don't use separate table for status pins * remove unused add + remove checking * tidy up + add some more tests
This commit is contained in:
@@ -271,7 +271,7 @@ main {
|
||||
box-shadow: $boxshadow;
|
||||
}
|
||||
|
||||
#recent {
|
||||
#recent, #pinned {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
@@ -53,6 +53,18 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ if .pinned_statuses }}
|
||||
<h2 id="pinned">
|
||||
<span>Pinned toots</span>
|
||||
</h2>
|
||||
<div class="thread">
|
||||
{{ range .pinned_statuses }}
|
||||
<div class="toot expanded">
|
||||
{{ template "status.tmpl" .}}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<h2 id="recent">
|
||||
<span>Latest public toots</span>
|
||||
{{ if .rssFeed }}
|
||||
|
Reference in New Issue
Block a user