mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
fix: #12496, url in schema
This commit is contained in:
@@ -11,6 +11,11 @@ PostObject:
|
|||||||
type: number
|
type: number
|
||||||
description: The post that this post is in reply to
|
description: The post that this post is in reply to
|
||||||
nullable: true
|
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:
|
content:
|
||||||
type: string
|
type: string
|
||||||
uid:
|
uid:
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ module.exports = function (Posts) {
|
|||||||
if (data.handle && !parseInt(uid, 10)) {
|
if (data.handle && !parseInt(uid, 10)) {
|
||||||
postData.handle = data.handle;
|
postData.handle = data.handle;
|
||||||
}
|
}
|
||||||
if (_activitypub.url) {
|
if (_activitypub && _activitypub.url) {
|
||||||
postData.url = _activitypub.url;
|
postData.url = _activitypub.url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user