feat: save audience into post hash (for remote posts)

This commit is contained in:
Julian Lam
2024-12-24 11:17:22 -05:00
parent 035a37a936
commit b537437c78

View File

@@ -41,8 +41,13 @@ 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 && _activitypub.url) { if (_activitypub) {
postData.url = _activitypub.url; if (_activitypub.url) {
postData.url = _activitypub.url;
}
if (_activitypub.audience) {
postData.audience = _activitypub.audience;
}
} }
// Rewrite emoji references to inline image assets // Rewrite emoji references to inline image assets