mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 23:26:07 +09:00
Show pinned post in user page
This commit is contained in:
parent
b33b36e767
commit
ede4176777
@ -28,6 +28,7 @@
|
||||
|
||||
> mk-post-detail
|
||||
margin 0 auto
|
||||
width 640px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
|
@ -57,7 +57,7 @@
|
||||
</button>
|
||||
</footer>
|
||||
</article>
|
||||
<div class="replies">
|
||||
<div class="replies" if={ !compact }>
|
||||
<virtual each={ post in replies }>
|
||||
<mk-post-detail-sub post={ post }/>
|
||||
</virtual>
|
||||
@ -68,7 +68,6 @@
|
||||
display block
|
||||
margin 0
|
||||
padding 0
|
||||
width 640px
|
||||
overflow hidden
|
||||
text-align left
|
||||
background #fff
|
||||
@ -259,6 +258,7 @@
|
||||
this.mixin('api');
|
||||
this.mixin('user-preview');
|
||||
|
||||
this.compact = this.opts.compact;
|
||||
this.contextFetching = false;
|
||||
this.context = null;
|
||||
this.post = this.opts.post;
|
||||
@ -288,14 +288,16 @@
|
||||
}
|
||||
|
||||
// Get replies
|
||||
this.api('posts/replies', {
|
||||
post_id: this.p.id,
|
||||
limit: 8
|
||||
}).then(replies => {
|
||||
this.update({
|
||||
replies: replies
|
||||
if (!this.compact) {
|
||||
this.api('posts/replies', {
|
||||
post_id: this.p.id,
|
||||
limit: 8
|
||||
}).then(replies => {
|
||||
this.update({
|
||||
replies: replies
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
this.reply = () => {
|
||||
|
@ -399,6 +399,7 @@
|
||||
<mk-user-photos user={ user }/>
|
||||
</div>
|
||||
<main>
|
||||
<mk-post-detail if={ user.pinned_post } post={ user.pinned_post } compact={ true }/>
|
||||
<mk-user-timeline ref="tl" user={ user }/>
|
||||
</main>
|
||||
<div>
|
||||
|
Loading…
Reference in New Issue
Block a user