Node.js based forum software built for the modern web
feat: save audience into post hash (for remote posts)
Julian Lamb537437c7889
diff --git a/src/posts/create.js b/src/posts/create.jsindex 874971d501..869fdf3a05 100644--- a/src/posts/create.js+++ b/src/posts/create.js@@ -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