mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
fix: #12496, url in schema
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user