aboutsummaryrefslogtreecommitdiff
path: root/templates/postform.inc.php
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-09-02 00:18:55 -0600
committerIván Ávalos <avalos@disroot.org>2023-09-02 00:41:00 -0600
commitaa1bac9aa30c6ba8ff48c8b70dfc523e3197e315 (patch)
treebe33e8c6dd22e1eb62a02488c0a305f11fcbfa75 /templates/postform.inc.php
parent706c4cc1fa62492344089a3310c7bcea1041f78b (diff)
downloadmicroblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.tar.gz
microblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.tar.bz2
microblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.zip
Remove ActivityPub and Twitter support, and fix localhost
Diffstat (limited to 'templates/postform.inc.php')
-rw-r--r--templates/postform.inc.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/templates/postform.inc.php b/templates/postform.inc.php
index 59579c1..63e3901 100644
--- a/templates/postform.inc.php
+++ b/templates/postform.inc.php
@@ -26,16 +26,6 @@
rebuild_feeds();
- if($config['activitypub'] == true) activitypub_notify_followers($id);
- if($config['ping'] == true) ping_microblog();
- if($config['crosspost_to_twitter'] == true) {
- $twitter_response = json_decode(twitter_post_status($_POST['content']), true);
-
- if(!empty($twitter_response['errors'])) {
- $message['message'] .= ' (But crossposting to twitter failed!)';
- }
- }
-
header('Location: '.$config['url']);
die();
}