fix: #12496, url in schema

This commit is contained in:
Julian Lam
2024-04-11 13:43:29 -04:00
parent 525b7c2cee
commit f783338621
2 changed files with 6 additions and 1 deletions

View File

@@ -11,6 +11,11 @@ PostObject:
type: number
description: The post that this post is in reply to
nullable: true
url:
type: string
description: |
A permalink to the post content.
For posts received via ActivityPub, it is the url of the original piece of content.
content:
type: string
uid:

View File

@@ -44,7 +44,7 @@ module.exports = function (Posts) {
if (data.handle && !parseInt(uid, 10)) {
postData.handle = data.handle;
}
if (_activitypub.url) {
if (_activitypub && _activitypub.url) {
postData.url = _activitypub.url;
}