Commit Graph

63 Commits (develop)

Author SHA1 Message Date
Hypolite Petovan 9bfb5e879d [nsfw] Rewrite string condition to avoid warning message
- Address https://github.com/friendica/friendica/issues/13157#issuecomment-1567337197
2023-05-29 19:34:01 -04:00
Hypolite Petovan 39c654da00 [various] Remove App dependency from hook functions 2023-01-13 21:16:09 -05:00
Hypolite Petovan b1442ebfd1 [nsfw] Suppress warnings about failed regexp compilation
- Add failed regexp compilation system messages on addon settings submit
- Address https://github.com/friendica/friendica/issues/11992#issuecomment-1336418781
2022-12-10 14:43:30 -05:00
Hypolite Petovan 91accba3b9 [nsfw] Match regular words with case sensitivity
- Update field description
2022-11-18 11:57:51 -05:00
Philipp b0eb28143a
UserSession class - Refactor addon 2022-10-20 23:51:49 +02:00
Michael 5d8129600d Replace all functions from boot.php 2022-10-19 09:47:36 -04:00
Roland Häder 04df7f6e05
Changes:
- added more type-hints
- cleaned up some files (curly braces, spaces)
2022-06-23 07:17:00 +02: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
Hypolite Petovan f0522a998b [various] Use __DIR__ constant in all Page registerStylesheet and registerFooterScript calls 2021-11-29 06:54:59 -05: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
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
Hypolite Petovan d3717045f7 [various] Replace remaining $a->page by DI::page() 2019-12-30 15:53:43 -05:00
Hypolite Petovan 905823ea63 Update obsolete App::getBaseUrl calls to DI::baseUrl 2019-12-29 21:55:10 -05: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
Philipp Holzer 1454abfdb4
rename App Methods
- rename get_baseurl() to getBaseURL()
2018-10-10 00:04:49 +02:00
Michael 7a29893ecb some more notices and some code beautification 2018-08-08 06:24:47 +00:00
Hypolite Petovan 0c3f747649 Rename "content_filter" hook to "prepare_body_content_filter" 2018-04-04 22:51:44 -04:00
Hypolite Petovan 635bea65f7 [nsfw] Use content_filter hook
- Remove check on content-warning item field
2018-04-01 02:39:29 -04:00
Hypolite Petovan 567028f1bd Add hashtag-only search 2018-03-25 00:20:16 -04:00
Hypolite Petovan b9c38e9ac3 [nsfw] Fix formatting in nsfw.php 2018-03-25 00:08:19 -04:00
Andy H3 01af92077a
Update nsfw.php
rm empty line
2018-03-15 18:05:30 +07:00
Andy Hee bcb5101677 modified: nsfw.phpw
gen   lang/C/messages.po
2018-03-15 17:57:11 +07:00
Andy Hee f0b5acc702 updated nsfw/nsfw.phpw 2018-03-15 16:00:09 +07:00
Andy Hee a263e4520f updated nsfw.php 2018-03-15 15:47:51 +07:00
Andy Hee 3bf2c3ca07 Updated nsfw.php 2018-03-15 15:44:00 +07:00
Michael 93c1914cad nsfw now ignores content warning posts and the code has been reformatted 2018-03-14 22:33:58 +00:00
Adam Magness b191d5716c Remove sprintf with translations
don't use sprintf with translation functions
2018-01-23 22:59:20 -05:00
Adam Magness 1f71af77d5 Missed t()
missed t() call
2018-01-22 18:09:05 -05: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
Tobias Diekershoff f8d9efe8c7 some files were executable, now they are not 2017-12-07 14:26:26 +01:00
Adam Magness 48dcbc6f3f Issue 3873
Replace deprecated functions with new syntax
2017-11-06 18:55:24 -05:00
rebeka-catalina 4aea294776 Update nsfw.php 2015-12-12 16:39:27 +01:00
rebeka-catalina 29c44ec92f nsfw-words input to textarea for more comfortable usage 2015-12-12 16:01:11 +01:00
Michael Vogel 503ec7d072 Removed the word "Settings" from the settings. This information is redundant. 2014-03-16 20:50:36 +01:00
tobiasd 0b459e8379 Merge pull request #166 from annando/master
inflate/deflate settings
2013-12-01 02:25:26 -08:00
Michael Vogel dc23cb5fb5 nsfw: inflate/deflate settings 2013-11-30 21:21:57 +01:00
Tobias Diekershoff 5c5c23acb0 wording submit -> save settings 2013-11-19 14:10:27 +01:00
friendica 26e302cdc3 fix nsfw for tag array 2013-07-08 17:41:48 -07:00
friendica 3596e1d594 update to new tag style 2013-06-26 04:10:58 -07:00
friendica e504db1f50 package update 2013-06-26 03:49:07 -07:00
friendica 6782f22303 n-s-f-w use title in word search until somebody fixes the tag search 2013-06-26 03:38:39 -07:00