Commit Graph

54 Commits (5d7dbe354a4ca5d47a45df783eab91114624e30d)

Author SHA1 Message Date
Hypolite Petovan b6d03e10b6 [langfilter] Prevent image proxifying while converting text for language detection 2022-01-20 09:23:31 -05:00
Hypolite Petovan 34437e368f [langfilter] Improve language detection by removing contiguous whitespace from the message
- HTML-heavy posts had several superfluous whitespace character putting them over the minimum message length
2022-01-19 19:52:04 -05:00
Hypolite Petovan 779b38ec09 [various] Convert addon_settings hook functions to the new data array format
- Add separate template files to several addons
- Remove superfluous addon settings CSS files
2021-11-29 06:55:16 -05:00
Michael 08c64387d7 "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:49:06 +00:00
Michael 9cf43bb85b Changed function name 2021-08-09 15:29:26 +00:00
Michael e823a1bd05 Replaced direct calls to App->user 2021-08-08 11:17:08 +00:00
Michael Vogel dc81a5cf5f Langfilter: Improve performance by using pre rendered content 2021-07-18 01:36:23 +02:00
Balázs Úr e53818d9f1 [langfilter] Fix typos 2021-03-24 23:33:42 +01:00
Hypolite Petovan 76ecff195f [langfilter] Remove Composer dependency
- It has been added to Friendica core
2020-10-10 17:40:17 -04:00
Hypolite Petovan 72ce0e814d [langfilter] Add slider to addon settings
- Update description for accuracy
2020-10-03 22:02:05 -04:00
Hypolite Petovan 023b3a4a76 [langfilter] Replace remove Text_Language_Detect dependency by matriphe/iso-639
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-703153334
2020-10-03 22:01:37 -04:00
Hypolite Petovan 203672cf27 [various] Remove redundant uninstall functions
- All hooks (current and obsolete) are removed automatically during addon uninstall
2020-07-27 08:30:41 -04:00
Michael 3f84caeec5 Unneeded "info" messages removed 2020-07-23 03:48:52 +00:00
Hypolite Petovan 7df232a28e [langfilter] Add default values to form parameters
- Rename langfilter.disable to langfilter.enable with backward compatibility
2020-02-01 14:14:22 -05:00
nupplaPhil f2fc22227a
cleanup namespace usages for L10n 2020-01-19 16:31:47 +01:00
nupplaPhil 48fecb9a40
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:46 +01:00
nupplaPhil a26bfe79e9
Remove unused `use` statements & remove PConfig class 2020-01-18 17:02:59 +01:00
nupplaPhil febc835a2d
Move PConfig::set() to DI::pConfig()->set() 2020-01-18 16:54:49 +01:00
nupplaPhil ea3a9052d8
Move PConfig::get() to DI::pConfig()->get() 2020-01-18 16:50:56 +01:00
nupplaPhil 335fcf670f
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-27 21:55:17 +01:00
Hypolite Petovan c27b1cb66f Replace deprecated Addon::*registerHook by Hook::*register 2018-12-26 10:20:18 -05:00
Hypolite Petovan d836593a3b Replace x() by !empty() or defaults()
- Remove extraneous parentheses around !empty()
2018-11-30 09:11:56 -05:00
Adam Magness 9079480d4a move to Renderer class
update functions calls for new Renderer class.
2018-10-31 10:55:15 -04:00
Philipp Holzer 1454abfdb4
rename App Methods
- rename get_baseurl() to getBaseURL()
2018-10-10 00:04:49 +02:00
Michael c487765860 Where do these notices hide? Now one is removed 2018-08-31 05:10:53 +00:00
Michael bcc233b4ae Some miswritten variable ... 2018-08-20 21:24:53 +00:00
Michael 7a29893ecb some more notices and some code beautification 2018-08-08 06:24:47 +00:00
Michael aae9da33dc "langfilter" uses the new "language" field as well 2018-06-30 05:20:17 +00:00
Tobias Diekershoff 745fe99e08 langfilter: dont add languages when none are set to the settings 2018-06-01 18:05:45 +02:00
Hypolite Petovan 8e8bb8e918 [langfilter] Fix namespacing to refer to Text\BBCode 2018-04-21 18:47:18 -04:00
Hypolite Petovan eafe9d68b0 [langfilter] Use new Text\BBCode::toPlaintext to calculate minimum body size 2018-04-21 04:28:03 -04:00
Hypolite Petovan 0c3f747649 Rename "content_filter" hook to "prepare_body_content_filter" 2018-04-04 22:51:44 -04:00
Hypolite Petovan 05a0e445ab [langfilter] Use content_filter hook 2018-04-01 02:39:28 -04:00
Andy Hee d298f3c19c modified: lang/C/messages.po
modified:   langfilter.php
2018-03-29 22:45:42 +07:00
Andy Hee 51c5650a20 modified: lang/C/messages.po
modified:   langfilter.php
2018-03-29 20:22:05 +07:00
Adam Magness f8c162cbfb Update t() calls
Update all t() calls.
2018-01-22 18:09:05 -05:00
Adam Magness c71f7b0e1a Update function names
update function names and hook calls
2018-01-20 08:57:41 -05:00
Adam Magness 0afd633346 Addon class
plugin moved to Addon src class
2018-01-19 07:20:17 -05:00
Hypolite Petovan 27b60e003f Use short form array syntax everywhere 2018-01-15 08:15:33 -05:00
Hypolite Petovan 4045ae6988 Fix PHP notice about $a->config['system']['url'] in langfilter
- Simplify sprintf(t()) structure
2018-01-01 17:17:15 -05:00
Hypolite Petovan 6516e9a667 Add PConfig class + fix elseif instances 2017-11-05 11:15:34 -05:00
Hypolite Petovan 4c20eec16d Remove reference to library folder 2017-11-05 08:59:59 -05:00
Hypolite Petovan 725534ca6c Fix formatting according to PSR-2
- Add type-hinting to App object
2017-11-05 08:59:45 -05:00
Tobias Diekershoff 03c3ae9bfe Revert "Remove reference to library/langdet folder" 2017-10-05 14:58:44 +02:00
Hypolite Petovan 16f1163cb0 Remove reference to library/langdet folder 2017-09-27 23:18:38 -04:00
Sandro Santilli ed1caffe04 Add minimum post body length setting to language filter 2016-10-01 18:15:32 +02:00
Sandro Santilli 6d2af1878a Add min confidence parameter to language filter 2015-09-22 13:07:04 +02:00
Sandro Santilli 05e02aae8b Prepare to filter by min confidence, and fix more typos 2015-09-22 12:40:48 +02:00
Sandro Santilli 2f18407eae Cleanup implementation of langfilter_prepare_body, and fix a typo 2015-09-22 12:29:06 +02:00
Sandro Santilli aee6db7b0a Use expanded language name, easier to read for humans 2015-09-10 10:00:21 +02:00