summaryrefslogtreecommitdiffstats
path: root/dependencyinjection
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-08-28 19:19:28 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-08-28 19:19:28 +0200
commit2f67340e551b12dce8824381c3291bb2137857cb (patch)
tree2342cb35b5b337e083bb2fdc866a3d10d92f99c7 /dependencyinjection
parenta9eb72911b6f022da645dc08cf8c0f4b1702d1e1 (diff)
Possible backwards incompatible change by using the link provided by simplepie instead of the user for the url hash. This prevents duplication of the feed when adding a slightly different feed url which points to the same feed and allows a speedup from O(n) to O(1) for article enhanchers
Diffstat (limited to 'dependencyinjection')
-rw-r--r--dependencyinjection/dicontainer.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php
index 39f5a7be4..1d47181de 100644
--- a/dependencyinjection/dicontainer.php
+++ b/dependencyinjection/dicontainer.php
@@ -57,7 +57,6 @@ use \OCA\News\Utility\Updater;
use \OCA\News\Utility\SimplePieFileFactory;
use \OCA\News\Utility\ArticleEnhancer\Enhancer;
-use \OCA\News\Utility\ArticleEnhancer\DefaultEnhancer;
use \OCA\News\Utility\ArticleEnhancer\CyanideAndHappinessEnhancer;
@@ -234,8 +233,7 @@ class DIContainer extends BaseContainer {
// register fetchers in order
// the most generic enhancer should be the last one
- $enhancer->registerEnhancer($c['CyanideAndHappinessEnhancer']);
- $enhancer->registerEnhancer($c['DefaultEnhancer']);
+ $enhancer->registerEnhancer('explosm.net', $c['CyanideAndHappinessEnhancer']);
return $enhancer;
});