Skip to content

Commit

Permalink
Item15118: add more oembed providers
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed May 5, 2022
1 parent 5b3537f commit cf3af7b
Show file tree
Hide file tree
Showing 11 changed files with 2,506 additions and 635 deletions.
446 changes: 291 additions & 155 deletions data/System/OEmbedPlugin.txt

Large diffs are not rendered by default.

19 changes: 4 additions & 15 deletions lib/Foswiki/Plugins/OEmbedPlugin.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# OEmbedPlugin is Copyright (C) 2013-2017 Michael Daum http://michaeldaumconsulting.com
# OEmbedPlugin is Copyright (C) 2013-2022 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand All @@ -20,8 +20,8 @@ use warnings;

use Foswiki::Func ();

our $VERSION = '5.41';
our $RELEASE = '25 Sep 2017';
our $VERSION = '7.00';
our $RELEASE = '05 May 2022';
our $SHORTDESCRIPTION = 'Easy embedding of third party content';
our $NO_PREFS_IN_TOPIC = 1;
our $core;
Expand All @@ -32,18 +32,7 @@ sub initPlugin {

Foswiki::Func::registerTagHandler('OEMBED', sub { return getCore()->EMBED(@_); });
Foswiki::Func::registerTagHandler('EMBED', sub { return getCore()->EMBED(@_); });

Foswiki::Func::registerRESTHandler('purgeCache', sub { return getCore()->purgeCache(@_); },
authenticate => 0,
validate => 0,
http_allow => 'GET,POST',
);

Foswiki::Func::registerRESTHandler('clearCache', sub { return getCore()->clearCache(@_); },
authenticate => 0,
validate => 0,
http_allow => 'GET,POST',
);
Foswiki::Func::registerTagHandler('OEMBED_PROVIDER', sub { return getCore()->OEMBED_PROVIDER(@_); });

Foswiki::Func::registerRESTHandler('provider', sub { return getCore()->provider(@_); },
authenticate => 0,
Expand Down

0 comments on commit cf3af7b

Please sign in to comment.