Merge branch 'develop' into vite
This commit is contained in:
commit
193de40410
4 changed files with 29 additions and 37 deletions
|
|
@ -41,6 +41,7 @@ router.options(allPath, async ctx => {
|
|||
router.get('/.well-known/host-meta', async ctx => {
|
||||
ctx.set('Content-Type', xrd);
|
||||
ctx.body = XRD({ element: 'Link', attributes: {
|
||||
rel: 'lrdd',
|
||||
type: xrd,
|
||||
template: `${config.url}${webFingerPath}?resource={uri}`,
|
||||
} });
|
||||
|
|
|
|||
|
|
@ -187,6 +187,8 @@ export default async (user: { id: User['id']; username: User['username']; host:
|
|||
|
||||
if (data.text) {
|
||||
data.text = data.text.trim();
|
||||
} else {
|
||||
data.text = null;
|
||||
}
|
||||
|
||||
let tags = data.apHashtags;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue