mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Update post-detail.tag
This commit is contained in:
parent
0bdb37635d
commit
0c0f43c55b
@ -341,12 +341,11 @@
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
this.mixin('api');
|
|
||||||
|
|
||||||
import compile from '../../common/scripts/text-compiler';
|
import compile from '../../common/scripts/text-compiler';
|
||||||
|
import getPostSummary from '../../common/scripts/get-post-summary';
|
||||||
|
import openPostForm from '../scripts/open-post-form';
|
||||||
|
|
||||||
this.getPostSummary = require('../../common/scripts/get-post-summary');
|
this.mixin('api');
|
||||||
this.openPostForm = require('../scripts/open-post-form');
|
|
||||||
|
|
||||||
this.fetching = true;
|
this.fetching = true;
|
||||||
this.loadingContext = false;
|
this.loadingContext = false;
|
||||||
@ -364,7 +363,7 @@
|
|||||||
post: post,
|
post: post,
|
||||||
isRepost: isRepost,
|
isRepost: isRepost,
|
||||||
p: p,
|
p: p,
|
||||||
summary: this.getPostSummary(p)
|
summary: getPostSummary(p)
|
||||||
});
|
});
|
||||||
|
|
||||||
this.trigger('loaded');
|
this.trigger('loaded');
|
||||||
@ -421,7 +420,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.reply = () => {
|
this.reply = () => {
|
||||||
this.openPostForm({
|
openPostForm({
|
||||||
reply: this.p
|
reply: this.p
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user