diff --git a/.gitignore b/.gitignore index 496ee2c..7d0f6ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -.DS_Store \ No newline at end of file +vendor +node_modules +.DS_Store diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..49365b9 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,30 @@ +module.exports = function(grunt) { + // Project configuration. + grunt.initConfig({ + wp_readme_to_markdown: { + target: { + files: { + 'README.md': 'readme.txt' + }, + }, + }, + makepot: { + target: { + options: { + mainFile: 'ostatus.php', + domainPath: '/languages', + exclude: ['bin/.*', '.git/.*', 'vendor/.*'], + potFilename: 'wordpress-ostatus.pot', + type: 'wp-plugin', + updateTimestamp: true + } + } + } + }); + + grunt.loadNpmTasks('grunt-wp-readme-to-markdown'); + grunt.loadNpmTasks('grunt-wp-i18n'); + + // Default task(s). + grunt.registerTask('default', ['wp_readme_to_markdown']); +}; diff --git a/README.md b/README.md new file mode 100644 index 0000000..4be0416 --- /dev/null +++ b/README.md @@ -0,0 +1,65 @@ +# OStatus for Wordpress # +**Contributors:** pepijndevos, pfefferle +**Tags:** social network, ostatus, federated, bundle, mastodon, gnu, social, gnu.social, status.net +**Requires at least:** 4.5 +**Tested up to:** 4.7.4 +**Stable tag:** 2.0.0 + +A bundle of plugins that turn your blog into your private federated social network. + +## Description ## + +OStatus for Wordpress turns your blog into a federated social network. This means you can share and talk to everyone using the OStatus protocol, including users of Status.net/Identi.ca and Wordpress.com + +The Plugin is compatible to Mastodon, gnu.social and Status.NET. + +For more information about OStatus visit the [OStatus Community Group](https://www.w3.org/community/ostatus/) + +This plugin bundles a few other plugins it requires to work, theses are installed automatically unless you have them already installed. + +The plugin requires: + +* the `PubSubHubBub`-plugin: http://wordpress.org/plugins/pubsubhubbub/ +* the `host-meta`-plugin: http://wordpress.org/plugins/host-meta/ +* the `webfinger`-plugin: http://wordpress.org/plugins/webfinger/ +* the `Salmon`-plugin: http://wordpress.org/plugins/salmon/ +* the `ActivityStream extension`-plugin: http://wordpress.org/plugins/activitystream-extension/ + +## Installation ## + +1. Upload the plugin folder to the `/wp-content/plugins/` directory +1. Activate the plugin through the 'Plugins' menu in WordPress +1. Check all the needed plugins are there and activated through the settings-page + +## Frequently Asked Questions ## + +### can I help you? ### +yes please! + +## Changelog ## + +### 2.0.0 ### +* Mastodon and gnu.social support +* PHP 7 compatibility +* small changes + +### 1.2 ### +* WordPress 3.1 support + +### 1.1 ### +* added functionality + +### 1.0 ### +* initial version + +## Upgrade Notice ## + +nothing to fear + +## Helping out ## + +You can help! + +This plugin bundles a few plugins theta implement parts of the OStatus specification. + +If you are the author of a relevant plugin, or are planning one, contact us to get it included in this bundle. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..41b9af9 --- /dev/null +++ b/composer.json @@ -0,0 +1,19 @@ +{ + "name": "pfefferle/wordpress-ostatus", + "description": "A Webmention plugin for WordPress http://wordpress.org/plugins/webmention/", + "require": { + "php": ">=5.6.0", + "composer/installers": "~1.0" + }, + "type": "wordpress-plugin", + "license": "MIT", + "authors": [ + { + "name": "Matthias Pfefferle", + "homepage": "http://notiz.blog/" + } + ], + "extra": { + "installer-name": "ostatus-for-wordpress" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..4163094 --- /dev/null +++ b/composer.lock @@ -0,0 +1,135 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "hash": "f4fe8986674ef1053e8d22b5c1942cd7", + "content-hash": "6067ecf251352f885b6169ec460aa614", + "packages": [ + { + "name": "composer/installers", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/composer/installers.git", + "reference": "79ad876c7498c0bbfe7eed065b8651c93bfd6045" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/installers/zipball/79ad876c7498c0bbfe7eed065b8651c93bfd6045", + "reference": "79ad876c7498c0bbfe7eed065b8651c93bfd6045", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0" + }, + "replace": { + "roundcube/plugin-installer": "*", + "shama/baton": "*" + }, + "require-dev": { + "composer/composer": "1.0.*@dev", + "phpunit/phpunit": "4.1.*" + }, + "type": "composer-plugin", + "extra": { + "class": "Composer\\Installers\\Plugin", + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Installers\\": "src/Composer/Installers" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kyle Robinson Young", + "email": "kyle@dontkry.com", + "homepage": "https://github.com/shama" + } + ], + "description": "A multi-framework Composer library installer", + "homepage": "https://composer.github.io/installers/", + "keywords": [ + "Craft", + "Dolibarr", + "Eliasis", + "Hurad", + "ImageCMS", + "Kanboard", + "MODX Evo", + "Mautic", + "Maya", + "OXID", + "Plentymarkets", + "Porto", + "RadPHP", + "SMF", + "Thelia", + "WolfCMS", + "agl", + "aimeos", + "annotatecms", + "attogram", + "bitrix", + "cakephp", + "chef", + "cockpit", + "codeigniter", + "concrete5", + "croogo", + "dokuwiki", + "drupal", + "elgg", + "expressionengine", + "fuelphp", + "grav", + "installer", + "itop", + "joomla", + "kohana", + "laravel", + "lavalite", + "lithium", + "magento", + "mako", + "mediawiki", + "modulework", + "moodle", + "phpbb", + "piwik", + "ppi", + "puppet", + "reindex", + "roundcube", + "shopware", + "silverstripe", + "sydes", + "symfony", + "typo3", + "wordpress", + "yawik", + "zend", + "zikula" + ], + "time": "2017-04-24 06:37:16" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.6.0" + }, + "platform-dev": [] +} diff --git a/ostatus.php b/ostatus.php index 47d192a..1d1eea9 100644 --- a/ostatus.php +++ b/ostatus.php @@ -1,11 +1,15 @@