diff --git a/lib/media/mediafile.php b/lib/media/mediafile.php index 60842d438c..58c58c4b56 100644 --- a/lib/media/mediafile.php +++ b/lib/media/mediafile.php @@ -24,8 +24,8 @@ * @author Miguel Dantas * @author Zach Copley * @author Mikael Nordfeldth - * @author Diogo Cordeiro - * @copyright 2008-2009, 2019-2020 Free Software Foundation http://fsf.org + * @author Diogo Peralta Cordeiro + * @copyright 2008-2009, 2019-2021 Free Software Foundation http://fsf.org * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 */ defined('GNUSOCIAL') || die(); @@ -450,6 +450,7 @@ class MediaFile return MediaFile::fromFileObject($file); } } + var_dump($file);die; // If no exception is thrown then this file was already uploaded by a local actor once, so we'll use that and just add redirections. // but if the _actual_ locally stored file doesn't exist, getPath will throw FileNotFoundException $filepath = $file->getPath(); diff --git a/plugins/Embed/EmbedPlugin.php b/plugins/Embed/EmbedPlugin.php index 7810e91d94..3e6f4a7836 100644 --- a/plugins/Embed/EmbedPlugin.php +++ b/plugins/Embed/EmbedPlugin.php @@ -18,12 +18,14 @@ * OEmbed and OpenGraph implementation for GNU social * * @package GNUsocial + * @author Mikael Nordfeldth * @author Stephen Paul Weber * @author hannes * @author Mikael Nordfeldth - * @author Diogo Cordeiro - * @author Miguel Dantas - * @copyright 2019 Free Software Foundation, Inc http://www.fsf.org + * @author Diogo Peralta Cordeiro + * @author Miguel Dantas + * @author Diogo Peralta Cordeiro + * @copyright 2014-2021 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ @@ -35,12 +37,12 @@ use Embed\Embed; * Base class for the Embed plugin that does most of the heavy lifting to get * and display representations for remote content. * - * @copyright 2019 Free Software Foundation, Inc http://www.fsf.org + * @copyright 2014-2021 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ class EmbedPlugin extends Plugin { - const PLUGIN_VERSION = '2.0.0'; + const PLUGIN_VERSION = '2.1.0'; // settings which can be set in config.php with addPlugin('Embed', ['param'=>'value', ...]); // WARNING, these are _regexps_ (slashes added later). Always escape your dots and end ('$') your strings diff --git a/plugins/StoreRemoteMedia/StoreRemoteMediaPlugin.php b/plugins/StoreRemoteMedia/StoreRemoteMediaPlugin.php index 864f81ad10..341d4d5f95 100644 --- a/plugins/StoreRemoteMedia/StoreRemoteMediaPlugin.php +++ b/plugins/StoreRemoteMedia/StoreRemoteMediaPlugin.php @@ -1,8 +1,34 @@ . +/** + * The StoreRemoteMedia plugin downloads remotely attached files to local server. + * + * @package GNUsocial + * @author Mikael Nordfeldth + * @author Stephen Paul Weber + * @author Mikael Nordfeldth + * @author Miguel Dantas + * @author Diogo Peralta Cordeiro + * @copyright 2015-2016, 2019-2021 Free Software Foundation, Inc http://www.fsf.org + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later + */ class StoreRemoteMediaPlugin extends Plugin { - const PLUGIN_VERSION = '2.0.0'; + const PLUGIN_VERSION = '3.0.0'; // settings which can be set in config.php with addPlugin('StoreRemoteMedia', array('param'=>'value', ...)); // WARNING, these are _regexps_ (slashes added later). Always escape your dots and end your strings