]> git.mxchange.org Git - friendica.git/blobdiff - mod/editpost.php
Make "HTTPRequest::curl" dynamic
[friendica.git] / mod / editpost.php
index ca5db3e08105b7372f14f85a37cfc860b8962f07..8bde0329331b1dd3f0e1f427a4b92b82c6561fc3 100644 (file)
@@ -1,6 +1,22 @@
 <?php
 /**
- * @file mod/editpost.php
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
  */
 
 use Friendica\App;
@@ -116,6 +132,8 @@ function editpost_content(App $a)
                '$message' => DI::l10n()->t('Message'),
                '$browser' => DI::l10n()->t('Browser'),
                '$shortpermset' => DI::l10n()->t('permissions'),
+
+               '$compose_link_title' => DI::l10n()->t('Open Compose page'),
        ]);
 
        return $o;
@@ -127,7 +145,7 @@ function undo_post_tagging($s) {
        if ($cnt) {
                foreach ($matches as $mtch) {
                        if (in_array($mtch[1], ['!', '@'])) {
-                               $contact = Contact::getDetailsByURL($mtch[2]);
+                               $contact = Contact::getByURL($mtch[2], false, ['addr']);
                                $mtch[3] = empty($contact['addr']) ? $mtch[2] : $contact['addr'];
                        }
                        $s = str_replace($mtch[0], $mtch[1] . $mtch[3],$s);