]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Bookmarklet.php
Adding and removing of pictures via API is now possible
[friendica.git] / src / Module / Bookmarklet.php
index 8d64c97e42cb9b1331d2109a33f005d1baa1d0b4..959ed71a8debf2c4cc6b20f0e55069a9043a3381 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -47,7 +47,7 @@ class Bookmarklet extends BaseModule
                }
 
                $referer = Strings::normaliseLink($_SERVER['HTTP_REFERER'] ?? '');
-               $page = Strings::normaliseLink(DI::baseUrl()->get() . "/bookmarklet");
+               $page = Strings::normaliseLink(DI::baseUrl() . "/bookmarklet");
 
                if (!strstr($referer, $page)) {
                        if (empty($_REQUEST["url"])) {