Skip to content

Commit 0ce7ccc

Browse files
authored
Remove Twitter and FB SDKs (home-assistant#22379)
1 parent dc96057 commit 0ce7ccc

11 files changed

+19
-48
lines changed

sass/partials/_sharing.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@
44
background: $img-border top left repeat-x;
55
}
66
}
7-
8-
#fb-root { display: none; }

source/_includes/after_footer.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{% include facebook_like.html %}
2-
{% include twitter_sharing.html %}
31
<script>
42
$(document).ready(function() {
53
var stickyNavTop = $('nav').offset().top;

source/_includes/asides/about.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ <h1 class="title delta">About Home Assistant</h1>
77
<li><a href='/getting-started/'>Get started with Home Assistant</a></li>
88
<li><a href='https://demo.home-assistant.io'>Try the online demo</a></li>
99
<li><a href='https://building.open-home.io/#/portal'>Join our newsletter</a></li>
10-
<li><a class="twitter-follow-button" href="https://twitter.com/Home_Assistant">Follow Home Assistant on Twitter</a></li>
11-
<li><div class="fb-like" data-href="https://www.facebook.com/homeassistantio/" data-layout="standard" data-action="like" data-size="small" data-show-faces="true" data-share="false"></div></li>
10+
<li><a href="https://twitter.com/Home_Assistant">Follow Home Assistant on Twitter</a></li>
1211
{% comment %}
1312
<li>
1413
Subscribe to the Home Assistant Newsletter
@@ -20,6 +19,3 @@ <h1 class="title delta">About Home Assistant</h1>
2019
{% endcomment %}
2120
</ul>
2221
</section>
23-
<div id="fb-root"></div>
24-
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.async=true;js.src='//platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
25-
<script>(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}js=d.createElement(s);js.id=id;js.async=true;js.src="//connect.facebook.net/en_US/all.js#appId={{ site.social.facebook.app_id }}&xfbml=1";fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));</script>

source/_includes/facebook_like.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

source/_includes/post/sharing.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
<section class="sharing aside-module grid__item one-whole lap-one-half">
22
<h1 class="title delta">Share this post</h1>
3+
<ul class="divided">
34
{% if site.twitter_tweet_button %}
4-
<a href="//twitter.com/share"
5-
class="twitter-share-button"
6-
data-via="{{ site.social.twitter.account }}"
7-
data-related="{{ site.social.twitter.account }}"
8-
data-url="{{ page.url | canonical_url }}"
9-
data-counturl="{{ page.url | canonical_url }}" >Tweet</a>
5+
<li>
6+
<a
7+
target="_blank"
8+
href="https://twitter.com/intent/tweet?url={{ page.url | canonical_url | url_encode }}&text={{ page.title | append: ' via @home_assistant' | url_encode }}"
9+
>Tweet</a>
10+
</li>
1011
{% endif %}
1112
{% if site.facebook_like %}
12-
<div class="fb-share-button" style='top: -6px;'
13-
data-href="{{ page.url | canonical_url }}"
14-
data-layout="button_count">
15-
</div>
13+
<li>
14+
<a
15+
target="_blank"
16+
href="https://www.facebook.com/sharer.php?u={{ page.url | canonical_url | url_encode }}"
17+
>Share on Facebook</a>
18+
</li>
1619
{% endif %}
20+
</ul>
1721
</section>
18-
19-
<script src="https://apis.google.com/js/platform.js" async defer></script>

source/_includes/twitter_sharing.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

source/_posts/2019-09-18-release-99.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ We have published a release candidate of HassOS that is compatible with the new
107107

108108
Home Assistant had a booth this year at the [CEDIA home tech trade show](https://www.cediaexpo.com/). We spend a lot of time talking to manufacturers about local APIs, official integrations and better support for open source systems.
109109

110-
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Hanging out at <a href="https://twitter.com/CEDIAExpo?ref_src=twsrc%5Etfw">@CEDIAExpo</a> in innovation alley <a href="https://t.co/9SnUXo11oA">pic.twitter.com/9SnUXo11oA</a></p>&mdash; Home Assistant (@home_assistant) <a href="https://twitter.com/home_assistant/status/1172559987979292673?ref_src=twsrc%5Etfw">September 13, 2019</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
110+
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Hanging out at <a href="https://twitter.com/CEDIAExpo?ref_src=twsrc%5Etfw">@CEDIAExpo</a> in innovation alley <a href="https://t.co/9SnUXo11oA">pic.twitter.com/9SnUXo11oA</a></p>&mdash; Home Assistant (@home_assistant) <a href="https://twitter.com/home_assistant/status/1172559987979292673?ref_src=twsrc%5Etfw">September 13, 2019</a></blockquote>
111111

112112
We also had some great drinks in the evenings with companies that integrate with Home Assistant. In this picture [Konnected.io](/integrations/konnected) and Senic.
113113

source/_posts/2020-09-20-community-highlights.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ Jay was not the only one, [debsahu] added some lights to the deck steps as well!
7575

7676
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Decks lights are in. It blinks now. Powered by <a href="https://twitter.com/hashtag/esp32?src=hash&amp;ref_src=twsrc%5Etfw">#esp32</a> <a href="https://twitter.com/esphome_?ref_src=twsrc%5Etfw">@esphome_</a> and controlled by <a href="https://twitter.com/home_assistant?ref_src=twsrc%5Etfw">@home_assistant</a> <a href="https://t.co/ukCcDw8Mhm">pic.twitter.com/ukCcDw8Mhm</a></p>&mdash; Debashish Sahu, PhD (@debsahu) <a href="https://twitter.com/debsahu/status/1292255588618043394?ref_src=twsrc%5Etfw">August 9, 2020</a>
7777
</blockquote>
78-
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
7978

8079
[JayBigGuy]: https://twitter.com/jaybigguy10
8180
[debsahu]: https://twitter.com/debsahu

source/_posts/2020-11-30-community-highlights.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ using your toothbrush... Why? Because we can! 😎
8989
<blockquote class="twitter-tweet">
9090
<p lang="en" dir="ltr">Have you ever seen a house alarm system controlled by a toothbrush? Here our <a href="https://twitter.com/VanderbiltInd?ref_src=twsrc%5Etfw">@VanderbiltInd</a> alarm is integrated into <a href="https://twitter.com/home_assistant?ref_src=twsrc%5Etfw">@home_assistant</a> . Our toothbrush is ble enabled, it’s state is read by an ESP32 chip and sent into <a href="https://twitter.com/home_assistant?ref_src=twsrc%5Etfw">@home_assistant</a> <a href="https://t.co/T9XGi1Zjmb">pic.twitter.com/T9XGi1Zjmb</a></p>&mdash; Ian (@imduffy15) <a href="https://twitter.com/imduffy15/status/1329569523855478784?ref_src=twsrc%5Etfw">November 19, 2020</a>
9191
</blockquote>
92-
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
9392

9493
## Home Assistant Conference
9594

source/_posts/2021-04-23-community-highlights.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Blitzwolf etc.
9999

100100
More information can also be found in the twitter thread below.
101101

102-
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">I&#39;m doing an internship at <a href="https://twitter.com/NabuCasa?ref_src=twsrc%5Etfw">@NabuCasa</a> with the goal to discover how <a href="https://twitter.com/home_assistant?ref_src=twsrc%5Etfw">@home_assistant</a> can be used to gain insight in your energy usage and help optimize it.<br><br>I will be using this thread to show some of the things that I have done so far. <a href="https://t.co/0lLJxt15Nn">pic.twitter.com/0lLJxt15Nn</a></p>&mdash; Klaas Schoute (@klaasnicolaas) <a href="https://twitter.com/klaasnicolaas/status/1384584214402719746?ref_src=twsrc%5Etfw">April 20, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
102+
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">I&#39;m doing an internship at <a href="https://twitter.com/NabuCasa?ref_src=twsrc%5Etfw">@NabuCasa</a> with the goal to discover how <a href="https://twitter.com/home_assistant?ref_src=twsrc%5Etfw">@home_assistant</a> can be used to gain insight in your energy usage and help optimize it.<br><br>I will be using this thread to show some of the things that I have done so far. <a href="https://t.co/0lLJxt15Nn">pic.twitter.com/0lLJxt15Nn</a></p>&mdash; Klaas Schoute (@klaasnicolaas) <a href="https://twitter.com/klaasnicolaas/status/1384584214402719746?ref_src=twsrc%5Etfw">April 20, 2021</a></blockquote>
103103

104104
## Got a tip for the next edition?
105105

source/_posts/2021-05-07-community-highlights.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ component, which is ideal for if you want to measure all your energy via a
112112
pulse LED on your smart meter or when you want to read what your water
113113
consumption is.
114114

115-
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">The pulse meter component is also what I’ve used for the hardware I’ve been working on. I’ve made a range of improvements since the last time I shared it. Now including a status LED so it’s easy to check if it’s working. <a href="https://t.co/GwaVZS0HQj">pic.twitter.com/GwaVZS0HQj</a></p>&mdash; Klaas Schoute (@klaasnicolaas) <a href="https://twitter.com/klaasnicolaas/status/1389683162683518979?ref_src=twsrc%5Etfw">May 4, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
115+
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">The pulse meter component is also what I’ve used for the hardware I’ve been working on. I’ve made a range of improvements since the last time I shared it. Now including a status LED so it’s easy to check if it’s working. <a href="https://t.co/GwaVZS0HQj">pic.twitter.com/GwaVZS0HQj</a></p>&mdash; Klaas Schoute (@klaasnicolaas) <a href="https://twitter.com/klaasnicolaas/status/1389683162683518979?ref_src=twsrc%5Etfw">May 4, 2021</a></blockquote>
116116

117117
By combining measuring how many pulses there are within a time frame and
118118
the time between each pulse, you get even better accurate readings!
@@ -144,4 +144,4 @@ See you next edition!
144144
[community]: https://community.home-assistant.io
145145
[esphome]: https://esphome.io
146146
[week_blueprint]: https://community.home-assistant.io/t/deconz-simple-alarm-control-panel-blueprint/305397
147-
[dashboard]: https://www.reddit.com/r/homeassistant/comments/n4xnp3/i_made_neon_ui_for_my_tablet_does_it_have
147+
[dashboard]: https://www.reddit.com/r/homeassistant/comments/n4xnp3/i_made_neon_ui_for_my_tablet_does_it_have

0 commit comments

Comments
 (0)