summaryrefslogtreecommitdiff
path: root/views/settings.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2024-08-31 09:27:42 -0700
committerAaron Parecki <aaron@parecki.com>2024-08-31 09:27:42 -0700
commit8ecaed3d2f5a19bf1a5c4cb077658e1bd3bc8438 (patch)
treef0c2da5dd0a96291900518eeb71544d0a2d0882c /views/settings.php
parent38e4a4aeb6b34f2b3765d9d4bbd8e681194f262e (diff)
remove all the twitter junkHEADmaster
Diffstat (limited to 'views/settings.php')
-rw-r--r--views/settings.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/views/settings.php b/views/settings.php
index f51e69c..a479924 100644
--- a/views/settings.php
+++ b/views/settings.php
@@ -123,13 +123,6 @@
- <?php if(!Config::$twitterClientID): ?>
- <h3>Twitter</h3>
- <p>Connecting a Twitter account will automatically "favorite" and "retweet" tweets on Twitter when you favorite and retweet a Twitter URL in Quill.</p>
- <input type="button" id="twitter-button" value="Checking" class="btn">
- <?php endif ?>
-
-
<h3>Backwards Compatibility</h3>
<p>You can customize some of the properties that are sent in the Micropub request to work with older software.</p>
@@ -168,29 +161,6 @@
<script>
$(function(){
- <?php if(!Config::$twitterClientID): ?>
- $.getJSON("/auth/twitter", function(data){
- // Check if we're already authorized with twitter
- if(data && data.result == 'ok') {
- $("#twitter-button").val("Connected").addClass("btn-success");
- } else if(data && data.url) {
- $("#twitter-button").val("Sign In").data("url", data.url).addClass("btn-warning");
- } else {
- $("#twitter-button").val("Error").addClass("btn-danger");
- }
- });
-
- $("#twitter-button").click(function(){
- if($(this).data('url')) {
- window.location = $(this).data('url');
- } else {
- $.getJSON("/auth/twitter", {login: 1}, function(data){
- window.location = data.url;
- });
- }
- });
- <?php endif ?>
-
$("#send-html-content").click(function(){
var enabled = $(this).attr("checked") == "checked";
$.post("/settings/save", {