aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArno Richter <oelna@oelna.de>2023-08-20 12:25:32 +0200
committerArno Richter <oelna@oelna.de>2023-08-20 12:25:32 +0200
commit706c4cc1fa62492344089a3310c7bcea1041f78b (patch)
treebca8deaad62f2127a6f908bce77695c0bf26bb6f
parent66c6658bac8b0e99b59e3b9f4eb285f38bcebcf5 (diff)
downloadmicroblog-706c4cc1fa62492344089a3310c7bcea1041f78b.tar.gz
microblog-706c4cc1fa62492344089a3310c7bcea1041f78b.tar.bz2
microblog-706c4cc1fa62492344089a3310c7bcea1041f78b.zip
turn on activitypub support for XMLRPC posts
-rw-r--r--lib/xmlrpc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/xmlrpc.php b/lib/xmlrpc.php
index 3808a1d..71f8a58 100644
--- a/lib/xmlrpc.php
+++ b/lib/xmlrpc.php
@@ -349,6 +349,7 @@ function mw_new_post($method_name, $args) {
// success
rebuild_feeds();
+ if($config['activitypub'] == true) activitypub_notify_followers($insert_id);
return (int) $insert_id;
} else {
@@ -478,6 +479,7 @@ var_dump($image_urls);
if($update && $update > 0) {
// success
rebuild_feeds();
+ // todo: does this have to notify activitypub followers too?
return true;
} else {
@@ -507,6 +509,7 @@ function mw_delete_post($method_name, $args) {
$success = db_delete($post_id);
if($success > 0) {
rebuild_feeds();
+ // todo: does this have to notify activitypub followers too?
return true;
} else {