Explorar o código

Merge pull request #1682 from Alkarex/fix_mastodon_share

Small fix Mastodon share
Alexandre Alapetite %!s(int64=8) %!d(string=hai) anos
pai
achega
db44b48507
Modificáronse 2 ficheiros con 5 adicións e 3 borrados
  1. 3 1
      CHANGELOG.md
  2. 2 2
      app/FreshRSS.php

+ 3 - 1
CHANGELOG.md

@@ -2,8 +2,10 @@
 
 ## 2017-1X-XX FreshRSS 1.8.1-dev
 
+* Features
+	* Share with Mastodon [#1521](https://github.com/FreshRSS/FreshRSS/issues/1521)
 * UI
-	Show URL to add subscriptions from third-party tools [#1247](https://github.com/FreshRSS/FreshRSS/issues/1247)
+	* Show URL to add subscriptions from third-party tools [#1247](https://github.com/FreshRSS/FreshRSS/issues/1247)
 * SimplePie
 	* Remove "SimplePie" name from HTTP User-Agent string [#1656](https://github.com/FreshRSS/FreshRSS/pull/1656)
 * Bug fixing

+ 2 - 2
app/FreshRSS.php

@@ -111,8 +111,8 @@ class FreshRSS extends Minz_FrontController {
 	public static function preLayout() {
 		switch (Minz_Request::controllerName()) {
 			case 'index':
-				$urlToAuthorize = array_filter(array_map(function($a) {
-					if ('POST' === $a['method']) {
+				$urlToAuthorize = array_filter(array_map(function ($a) {
+					if (isset($a['method']) && $a['method'] === 'POST') {
 						return $a['url'];
 					}
 				}, FreshRSS_Context::$user_conf->sharing));