]> git.mxchange.org Git - friendica-addons.git/commitdiff
added hint to SN/T connector settings about colliding privacy settings
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 24 Feb 2012 21:42:47 +0000 (22:42 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 24 Feb 2012 21:42:47 +0000 (22:42 +0100)
statusnet.tgz
statusnet/statusnet.php
twitter.tgz
twitter/twitter.php

index 3f248156943b5f594a78c840b05f8996033c7f63..05d56d88222be4e8b1c0154f2493d4fcdb54534f 100755 (executable)
Binary files a/statusnet.tgz and b/statusnet.tgz differ
index a76399260f78838bab2b8b2e8202d85493509d37..8f2fbf8190965e9a95a0a2237e3985ae341d4b2d 100755 (executable)
@@ -327,6 +327,9 @@ function statusnet_settings(&$a,&$s) {
                        $details = $connection->get('account/verify_credentials');
                        $s .= '<div id="statusnet-info" ><img id="statusnet-avatar" src="'.$details->profile_image_url.'" /><p id="statusnet-info-block">'. t('Currently connected to: ') .'<a href="'.$details->statusnet_profile_url.'" target="_statusnet">'.$details->screen_name.'</a><br /><em>'.$details->description.'</em></p></div>';
                        $s .= '<p>'. t('If enabled all your <strong>public</strong> postings can be posted to the associated StatusNet account. You can choose to do so by default (here) or for every posting separately in the posting options when writing the entry.') .'</p>';
+                        if ($a->user['hidewall']) {
+                            $s .= '<p>'. t('<strong>Note</strong>: Due your privacy settings (<em>Hide your profile details from unknown viewers?</em>) the link potentially included in public postings relayed to StatusNet will lead the visitor to a blank page informing the visitor that the access to your profile has been restricted.') .'</p>';
+                        }
                        $s .= '<div id="statusnet-enable-wrapper">';
                        $s .= '<label id="statusnet-enable-label" for="statusnet-checkbox">'. t('Allow posting to StatusNet') .'</label>';
                        $s .= '<input id="statusnet-checkbox" type="checkbox" name="statusnet-enable" value="1" ' . $checked . '/>';
index 1b93943c2117c0b40715b7735dd0fe165fa34699..e3fbdec50cd041db5154c1a6d883b4341b6151a2 100755 (executable)
Binary files a/twitter.tgz and b/twitter.tgz differ
index 3b816e3be07ee1360ec21ee062979d2af1b4a3b3..fd0324635fa5c407eb65a98b08e814297b570d0e 100755 (executable)
@@ -183,6 +183,9 @@ function twitter_settings(&$a,&$s) {
                        $details = $connection->get('account/verify_credentials');
                        $s .= '<div id="twitter-info" ><img id="twitter-avatar" src="'.$details->profile_image_url.'" /><p id="twitter-info-block">'. t('Currently connected to: ') .'<a href="https://twitter.com/'.$details->screen_name.'" target="_twitter">'.$details->screen_name.'</a><br /><em>'.$details->description.'</em></p></div>';
                        $s .= '<p>'. t('If enabled all your <strong>public</strong> postings can be posted to the associated Twitter account. You can choose to do so by default (here) or for every posting separately in the posting options when writing the entry.') .'</p>';
+                        if ($a->user['hidewall']) {
+                            $s .= '<p>'. t('<strong>Note</strong>: Due your privacy settings (<em>Hide your profile details from unknown viewers?</em>) the link potentially included in public postings relayed to Twitter will lead the visitor to a blank page informing the visitor that the access to your profile has been restricted.') .'</p>';
+                        }
                        $s .= '<div id="twitter-enable-wrapper">';
                        $s .= '<label id="twitter-enable-label" for="twitter-checkbox">'. t('Allow posting to Twitter'). '</label>';
                        $s .= '<input id="twitter-checkbox" type="checkbox" name="twitter-enable" value="1" ' . $checked . '/>';