From 8ecaed3d2f5a19bf1a5c4cb077658e1bd3bc8438 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 31 Aug 2024 09:27:42 -0700 Subject: remove all the twitter junk --- views/docs/syndication.php | 8 ++--- views/new-post.php | 13 +------- views/privacy.php | 2 -- views/settings.php | 30 ----------------- views/twitter.php | 83 ---------------------------------------------- 5 files changed, 3 insertions(+), 133 deletions(-) delete mode 100644 views/twitter.php (limited to 'views') diff --git a/views/docs/syndication.php b/views/docs/syndication.php index 3452173..aaa695d 100644 --- a/views/docs/syndication.php +++ b/views/docs/syndication.php @@ -17,10 +17,6 @@ Content-type: application/json { "syndicate-to": [ - { - "uid": "https://twitter.com/aaronpk", - "name": "twitter.com/aaronpk" - }, { "uid": "https://news.indieweb.org/en", "name": "IndieNews" @@ -29,10 +25,10 @@ Content-type: application/json } -

The specific values of names and uids are up to your Micropub endpoint, but a good convention is to use the domain name of the service (e.g. https://twitter.com), or domain name and username (e.g. https://twitter.com/aaronpk) for the uid, and a friendly name like "Twitter" or "twitter.com/aaronpk" as the name.

+

The specific values of names and uids are up to your Micropub endpoint, but a good convention is to use the domain name of the service (e.g. https://news.indieweb.org), or domain name and username (e.g. https://mastodon.social/@aaronpk) for the uid, and a friendly name like "IndieNews" or "mastodon.social/@aaronpk" as the name.

Quill will check for your supported syndication targets when you sign in, but there is also a link on the new post screen to manually re-check if you'd like.

-

When you create a post and tap one of the syndication options, the value of uid is sent in a property called mp-syndicate-to, which instructs your endpoint to syndicate to that target. Note that Quill doesn't know whether the target is Twitter, Facebook, or something else, and doesn't talk to the service directly. It's just an instruction to your endpoint to syndicate to that destination.

+

When you create a post and tap one of the syndication options, the value of uid is sent in a property called mp-syndicate-to, which instructs your endpoint to syndicate to that target. Note that Quill doesn't know whether the target is Mastodon, IndieNews, or something else, and doesn't talk to the service directly. It's just an instruction to your endpoint to syndicate to that destination.

diff --git a/views/new-post.php b/views/new-post.php index ea8eb78..2190752 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -622,7 +622,7 @@ $(function(){ $("#note_content").on('change keyup', function(e){ var text = $("#note_content").val(); var tweet_length = tw_text_proxy(text).length; - var tweet_check = tw_length_check(text, 280, "user->twitter_username ?>"); + var tweet_check = tw_length_check(text, 280, ""); var remaining = 280 - tweet_length; $("#note_content_remaining span").text(remaining); $("#note_content_remaining").removeClass("pcheck200 pcheck206 pcheck207 pcheck208 pcheck413"); @@ -683,17 +683,6 @@ $(function(){ // } // $("#note_category").val(category.join(", ")); - /* - // stop auto-populating usernames in replies, since Twitter no longer requires it - if($("#note_content").val() == "" && data.mentions) { - var mentions = ''; - for(var i in data.mentions) { - mentions += '@'+data.mentions[i]+' '; - } - $("#note_content").val(mentions); - } - */ - if(data.entry) { $(".reply-context .content").text(data.entry.content.text); if(data.entry.name) { diff --git a/views/privacy.php b/views/privacy.php index 40ce393..c870f99 100644 --- a/views/privacy.php +++ b/views/privacy.php @@ -7,6 +7,4 @@

Quill does not store your posts itself, but does cache the last response from your website and provides it to you for debugging purposes.

-

If you connect Quill to your Twitter account, Quill can favorite tweets on your behalf when you favorite a Twitter URL. Quill will never post anything to your accounts without an explicit action on your part.

- 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 @@ - -

Twitter

-

Connecting a Twitter account will automatically "favorite" and "retweet" tweets on Twitter when you favorite and retweet a Twitter URL in Quill.

- - - -

Backwards Compatibility

You can customize some of the properties that are sent in the Micropub request to work with older software.

@@ -168,29 +161,6 @@ -- cgit v1.2.3