diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index 17cc8bf565..cd1ae4aa33 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -505,6 +505,21 @@ function facebook_post_hook(&$a,&$b) {
$msg = trim(strip_tags(bbcode($msg)));
$msg = html_entity_decode($msg,ENT_QUOTES,'UTF-8');
+ // add any attachments as text urls
+
+ $arr = explode(',',$b['attach']);
+
+ if(count($arr)) {
+ $msg .= "\n";
+ foreach($arr as $r) {
+ $matches = false;
+ $cnt = preg_match('|\[attach\]href=\"(.+?)\" size=\"(.+?)\" type=\"(.+?)\" title=\"(.+?)\"\[\/attach\]|',$r,$matches);
+ if($cnt) {
+ $msg .= $matches[1];
+ }
+ }
+ }
+
if (strlen($msg) > FACEBOOK_MAXPOSTLEN) {
$shortlink = "";
require_once('library/slinky.php');
@@ -718,11 +733,17 @@ function fb_consume_stream($uid,$j,$wall = false) {
if(! $orig_post)
continue;
- $r = q("SELECT * FROM `item` WHERE `parent-uri` = '%s' AND `uid` = %d AND `verb` = '%s' AND `author-link` = '%s' LIMIT 1",
+ // If we posted the like locally, it will be found with our url, not the FB url.
+
+ $second_url = (($likes->id == $self_id) ? $self[0]['url'] : 'http://facebook.com/profile.php?id=' . $likes->id);
+
+ $r = q("SELECT * FROM `item` WHERE `parent-uri` = '%s' AND `uid` = %d AND `verb` = '%s'
+ AND ( `author-link` = '%s' OR `author-link` = '%s' ) LIMIT 1",
dbesc($orig_post['uri']),
intval($uid),
dbesc(ACTIVITY_LIKE),
- dbesc('http://facebook.com/profile.php?id=' . $likes->id)
+ dbesc('http://facebook.com/profile.php?id=' . $likes->id),
+ dbesc($second_url)
);
if(count($r))
diff --git a/addon/statusnet/statusnet.php b/addon/statusnet/statusnet.php
index bd40f78d83..39df7d9620 100644
--- a/addon/statusnet/statusnet.php
+++ b/addon/statusnet/statusnet.php
@@ -207,7 +207,7 @@ function statusnet_settings(&$a,&$s) {
*/
if (! $globalsn == null) {
$s .= '
' . t('Globally Available StatusNet OAuthKeys') . '
';
- $s .= '
'. t('There are preconfigured OAuth key pairs for some StatusNet servers available. If you are useing one of them, please use these credentials. If not feel free to connect to any other StatusNet instance (see below).') .'
';
+ $s .= '
'. t("There are preconfigured OAuth key pairs for some StatusNet servers available. If you are useing one of them, please use these credentials. If not feel free to connect to any other StatusNet instance \x28see below\x29.") .'
';
+
+ if(x($_GET,'addr')) {
+ $addr = $_GET['addr'];
+ if(strpos($addr,'@' !== false))
+ $res = webfinger($addr);
+ else
+ $res = lrdd($addr);
+ $o .= str_replace("\n",' ',print_r($res,true));
+ }
+ return $o;
+}
\ No newline at end of file
diff --git a/update.php b/update.php
index 30ebd66f28..a53e4df78c 100644
--- a/update.php
+++ b/update.php
@@ -495,3 +495,7 @@ function update_1056() {
function update_1057() {
q("ALTER TABLE `attach` ADD `filename` CHAR( 255 ) NOT NULL AFTER `hash` ");
}
+
+function update_1058() {
+ q("ALTER TABLE `item` ADD `event-id` INT NOT NULL AFTER `resource-id` ");
+}
diff --git a/util/messages.po b/util/messages.po
index 19c39b2491..68c844388b 100644
--- a/util/messages.po
+++ b/util/messages.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 2.2.991\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-05-25 17:11-0700\n"
+"POT-Creation-Date: 2011-05-26 06:46-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -1725,12 +1725,12 @@ msgstr ""
msgid "Register"
msgstr ""
-#: ../../mod/like.php:110 ../../addon/facebook/facebook.php:759
+#: ../../mod/like.php:110 ../../addon/facebook/facebook.php:774
#: ../../include/conversation.php:20
msgid "status"
msgstr ""
-#: ../../mod/like.php:127 ../../addon/facebook/facebook.php:763
+#: ../../mod/like.php:127 ../../addon/facebook/facebook.php:778
#: ../../include/conversation.php:25
#, php-format
msgid "%1$s likes %2$s's %3$s"
@@ -1822,8 +1822,15 @@ msgstr ""
msgid "Administrator@"
msgstr ""
-#: ../../mod/item.php:562 ../../mod/item.php:626 ../../mod/dfrn_notify.php:573
-msgid " commented on an item at "
+#: ../../mod/item.php:562 ../../mod/dfrn_notify.php:446
+#: ../../mod/dfrn_notify.php:573
+#, php-format
+msgid "%s commented on an item at %s"
+msgstr ""
+
+#: ../../mod/item.php:626
+#, php-format
+msgid "%s posted to your profile wall at %s"
msgstr ""
#: ../../mod/item.php:655
@@ -2084,11 +2091,6 @@ msgstr ""
msgid "New mail received at "
msgstr ""
-#: ../../mod/dfrn_notify.php:446
-#, php-format
-msgid "%s commented on an item at %s"
-msgstr ""
-
#: ../../mod/apps.php:6
msgid "Applications"
msgstr ""
@@ -2508,7 +2510,7 @@ msgstr ""
msgid "Image: "
msgstr ""
-#: ../../addon/facebook/facebook.php:561
+#: ../../addon/facebook/facebook.php:576
msgid "View on Friendika"
msgstr ""
diff --git a/util/strings.php b/util/strings.php
index 659b0a2df1..a9591b0c25 100644
--- a/util/strings.php
+++ b/util/strings.php
@@ -158,7 +158,6 @@ $a->strings["Connection accepted at %s"] = "Connection accepted at %s";
$a->strings['Administrator'] = 'Administrator';
$a->strings['noreply'] = 'noreply';
$a->strings['%s commented on an item at %s'] = '%s commented on an item at %s';
-$a->strings[" commented on an item at "] = " commented on an item at ";
$a->strings["This introduction has already been accepted."] = "This introduction has already been accepted.";
$a->strings['Profile location is not valid or does not contain profile information.'] = 'Profile location is not valid or does not contain profile information.';
$a->strings['Warning: profile location has no identifiable owner name.'] = 'Warning: profile location has no identifiable owner name.';
@@ -314,6 +313,7 @@ $a->strings["%d message sent."] = array(
$a->strings['Unable to locate original post.'] = 'Unable to locate original post.';
$a->strings['Empty post discarded.'] = 'Empty post discarded.';
$a->strings['Wall Photos'] = 'Wall Photos';
+$a->strings['%s posted to your profile wall at %s'] = '%s posted to your profile wall at %s';
$a->strings['System error. Post not saved.'] = 'System error. Post not saved.';
$a->strings['This message was sent to you by %s, a member of the Friendika social network.'] = 'This message was sent to you by %s, a member of the Friendika social network.';
$a->strings['You may visit them online at %s'] = 'You may visit them online at %s';
@@ -787,7 +787,7 @@ $a->strings['We could not contact the StatusNet API with the Path you entered.']
$a->strings['StatusNet settings updated.'] = 'StatusNet settings updated.';
$a->strings['StatusNet Posting Settings'] = 'StatusNet Posting Settings';
$a->strings['Globally Available StatusNet OAuthKeys'] = 'Globally Available StatusNet OAuthKeys';
-$a->strings['There are preconfigured OAuth key pairs for some StatusNet servers available. If you are useing one of them, please use these credentials. If not feel free to connect to any other StatusNet instance (see below] = 'There are preconfigured OAuth key pairs for some StatusNet servers available. If you are useing one of them, please use these credentials. If not feel free to connect to any other StatusNet instance (see below;
+$a->strings["There are preconfigured OAuth key pairs for some StatusNet servers available. If you are useing one of them, please use these credentials. If not feel free to connect to any other StatusNet instance \x28see below\x29."] = "There are preconfigured OAuth key pairs for some StatusNet servers available. If you are useing one of them, please use these credentials. If not feel free to connect to any other StatusNet instance \x28see below\x29.";
$a->strings['Provide your own OAuth Credentials'] = 'Provide your own OAuth Credentials';
$a->strings['No consumer key pair for StatusNet found. Register your Friendika Account as an desktop client on your StatusNet account, copy the consumer key pair here and enter the API base root. Before you register your own OAuth key pair ask the administrator if there is already a key pair for this Friendika installation at your favorited StatusNet installation.'] = 'No consumer key pair for StatusNet found. Register your Friendika Account as an desktop client on your StatusNet account, copy the consumer key pair here and enter the API base root. Before you register your own OAuth key pair ask the administrator if there is already a key pair for this Friendika installation at your favorited StatusNet installation.';
$a->strings['OAuth Consumer Key'] = 'OAuth Consumer Key';
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css
index 2bac4238ea..58cf8646c8 100644
--- a/view/theme/duepuntozero/style.css
+++ b/view/theme/duepuntozero/style.css
@@ -2394,6 +2394,16 @@ a.mail-list-link {
margin: 0px 3px 0px 3px;
}
+
+#netsearch-box {
+ margin-top: 20px;
+}
+
+#netsearch-box #search-submit {
+ margin: 5px 0px 0px 0px;
+}
+
+
/**
* ICONS
*/
diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css
index 9c6c0120b8..7c9697b4d4 100644
--- a/view/theme/loozah/style.css
+++ b/view/theme/loozah/style.css
@@ -2411,6 +2411,14 @@ a.mail-list-link {
width: 300px;
}
+#netsearch-box {
+ margin-top: 20px;
+}
+
+#netsearch-box #search-submit {
+ margin: 5px 0px 0px 0px;
+}
+
/**
* ICONS
*/