From 85d5cfede54d0f1a4259acf2415ece1f9226bd12 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 28 Oct 2015 01:10:28 +0000 Subject: [PATCH] Link to add to Firefox as feedreader --- plugins/OStatus/OStatusPlugin.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 0dace39db0..aed81b4754 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -419,6 +419,17 @@ class OStatusPlugin extends Plugin return null; } + function onEndProfileSettingsActions($out) { + $siteName = common_config('site', 'name'); + $js = 'navigator.registerContentHandler("application/vnd.mozilla.maybe.feed", "'.addslashes(common_local_url('ostatussub', null, array('profile' => '%s'))).'", "'.addslashes($siteName).'")'; + $out->elementStart('li'); + $out->element('a', + array('href' => 'javascript:'.$js), + // TRANS: Option in profile settings to add this instance to Firefox as a feedreader + _('Add to Firefox as feedreader')); + $out->elementEnd('li'); + } + /** * Make sure necessary tables are filled out. */ -- 2.39.5