Extension talk:Send2StatusNet

if you want to help...
some improvements for the future could be:
 * try it out with your MediaWiki/StatusNet version + add your results (if I remember correctly in some future MW versions 1.19? one of the used functions is replaced?)
 * translate (see Send2StatusNet.i18n.php, there's en, de, fr already)
 * restrict dents to certain pages/user(s)/edits
 * make the url shortener also configurable -> then you have also access to stats
 * make a nice box around settings in preferences
 * check for message length + treat/cut text in a good way, --Erkan Yilmaz 14:25, 17 January 2012 (UTC)
 * new version 2.x is out :-)
 * tested in my MW 1.23.2, but should also work with 1.19+
 * the Manual:$wgArticle doesn't work anymore in 1.19+ :-(
 * so MW users 1.16-1.18 should use Send2StatusNet 1.x (from here)
 * more things to do for 2.x:
 * enable "Notify StatusNet site every time you edit" again
 * test in MW 1.19.x (which is still supported until 2015 May by WMF)
 * fix the header in the options (shows: &lt;prefs-send2sn&gt;)
 * rename extension to send2GNUsocial
 * (when I have updated SN/identica references inside the code), --Erkan Yilmaz (talk) 02:13, 2 August 2014 (UTC)

ur1.ca down
Hi, currently ur1.ca as short URL service is down and has been very slow in the last time. Therefore I set up another Short URL service, is.gd, as fast workaround.

As example I changed function ShortenLongUrlWithUr1dotca beginning in line 93 from Send2StatusNet.php to the following (it works for me).

--Singlespeedfahrer 19:21, 14 October 2011 (UTC)
 * BTW: @Erkan Yilmaz, thanks for this extension. --Singlespeedfahrer 19:24, 14 October 2011 (UTC)
 * Thanks for noticing + the code
 * version 1.3.2 includes the fix (by allowing in options to set one of the two URL shorteners), --Erkan Yilmaz 21:34, 14 October 2011 (UTC)

Send messages to groups
I think it would be a good feature if it would be possible to send messages directly to one or more specific groups when this is selected in preferences. --Singlespeedfahrer 19:37, 15 October 2011 (UTC) ✅ in v2.0.0, see input field "add this text to the end", --Erkan Yilmaz (talk) 01:42, 2 August 2014 (UTC)

Bug: Empty page after uploading an image
After uploading an image an empty page is shown. Images still have been uploaded. Found this on my error.log:

PHP Fatal error: Call to a member function getContent on a non-object in /var/www/mediawiki/extensions/Send2StatusNet/Send2StatusNet.php on line 186, referer: hxx://xxxx.xx/wiki/Spezial:Hochladen

Singlespeedfahrer 21:27, 22 October 2011 (UTC)
 * Fixed it with the check that no special page will be sent in Send2StatusNet.php (line 175 and 232). Therefore uploading an image is not send to the StatusNet site. Changed line 175 to:

if ( $wgUser->getBoolOption('SendToStatusNetActivate') && $wgUser->getBoolOption('SendToIdenticaNewArticles') && $wgTitle->getNamespace != NS_SPECIAL ) {


 * and line 232 to:

if ( $wgUser->getBoolOption('SendToStatusNetActivate') && $wgUser->getBoolOption('SendToIdenticaNewArticles') && $wgTitle->getNamespace != NS_SPECIAL ) {


 * --Singlespeedfahrer 18:03, 17 November 2011 (UTC)