mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: save audience into post hash (for remote posts)
This commit is contained in:
@@ -41,8 +41,13 @@ module.exports = function (Posts) {
|
||||
if (data.handle && !parseInt(uid, 10)) {
|
||||
postData.handle = data.handle;
|
||||
}
|
||||
if (_activitypub && _activitypub.url) {
|
||||
postData.url = _activitypub.url;
|
||||
if (_activitypub) {
|
||||
if (_activitypub.url) {
|
||||
postData.url = _activitypub.url;
|
||||
}
|
||||
if (_activitypub.audience) {
|
||||
postData.audience = _activitypub.audience;
|
||||
}
|
||||
}
|
||||
|
||||
// Rewrite emoji references to inline image assets
|
||||
|
||||
Reference in New Issue
Block a user