Commit Graph

755 Commits

Author SHA1 Message Date
nupplaPhil e57a87f224
Remove deprecated App::setBaseURL() - process methods to DI::baseUrl()->saveByURL() 2019-12-29 20:17:47 +01:00
nupplaPhil 50be94aa5e
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName() 2019-12-29 20:17:47 +01:00
nupplaPhil 2900389696
Remove deprecated App::getUrlPath - process methods to DI::baseUrl()->getUrlPath() 2019-12-29 20:17:46 +01:00
nupplaPhil e93fba5136
Remove deprecated App::removeBaseURL - process methods to DI::baseUrl()->remove() 2019-12-29 20:17:45 +01:00
nupplaPhil aedbdc536a
Refactor deprecated App::getArgumentValue() to DI::args()->get() 2019-12-29 20:17:44 +01:00
nupplaPhil 8b6e123b3f
Refactor deprecated App::isAjax() to DI::mode()->isAjax() 2019-12-29 20:17:44 +01:00
nupplaPhil 8e6973b774
Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-29 20:17:43 +01:00
nupplaPhil cc9b7bb14f
Refactor dynamic App::getDBA() to static DI::dba() 2019-12-29 20:17:43 +01:00
nupplaPhil 9cec293ccc
Refactor dynamic App::getMode() to static DI::mode() 2019-12-29 20:17:42 +01:00
nupplaPhil e2b2778e0a
Refactor dynamic App::getLogger() to static DI::logger() 2019-12-29 20:17:41 +01:00
nupplaPhil fceb4f3823
Refactor dynamic App::getConfig() to static DI::config() 2019-12-29 20:17:40 +01:00
nupplaPhil 388b963714
Replace BaseObject class with DI::* calls 2019-12-29 20:17:38 +01:00
nupplaPhil 1de3f186d7
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
2019-12-29 20:16:55 +01:00
Hypolite Petovan a9220aa83b
Merge pull request #8026 from nupplaphil/task/l10n_immutable
Make L10n immutable
2019-12-29 13:54:32 -05:00
Hypolite Petovan 25847c4c71
Merge pull request #8022 from nupplaphil/task/mod_hcard
Move mod/hcard to src\Module\HoverCard
2019-12-28 21:42:01 -05:00
Hypolite Petovan f000680511
Merge pull request #8021 from nupplaphil/task/mod_openid
Move mod/openid to src\Module\Security\OpenId
2019-12-28 21:39:42 -05:00
nupplaPhil 7a2f4dc54e
Make L10n immutable
- Remove Push/Pop
- Add "withLang($lang)" method
2019-12-28 23:12:01 +01:00
nupplaPhil 4d545825f0
optimize usage of arguments 2019-12-28 15:28:17 +01:00
nupplaPhil 97924d39d9
Merge init() and content() 2019-12-28 15:21:58 +01:00
Michael f281725a09 Remove test loggings 2019-12-28 11:17:10 +00:00
Michael 160f931861 Fix: Search for terms and posts is now possible again 2019-12-28 11:15:57 +00:00
Tobias Diekershoff d6274ab6f7
Merge pull request #8023 from MrPetovan/bug/7808-markdown-unescape-chevrons
Fix chevron display in BBCode/Markdown conversion
2019-12-28 08:07:30 +01:00
Hypolite Petovan 424106fd4e Add BBCode to Markdown to HTML raw result in Module\Babel
- Display HTML entities for BBCode to Markdown output
2019-12-27 20:44:24 -05:00
nupplaPhil 12e223b2ef
fix 2019-12-27 23:51:17 +01:00
nupplaPhil eeb78d2d29
Move mod/hcard to src\Module\HoverCard 2019-12-27 22:53:09 +01:00
nupplaPhil aa5771cf3e
Move Login/Logout/TwoFactor to bundled submodule "Security" 2019-12-27 22:19:28 +01:00
nupplaPhil d30e8665e1
Move mod/openid to src\Module\OpenId 2019-12-27 22:16:40 +01:00
Michael c037e9143c Additionally display the protocol together with the network 2019-12-27 17:24:29 +00:00
Michael Vogel c7e4157a5a
Merge pull request #8007 from MrPetovan/task/7984-add-profile-url-search
Add profile url search
2019-12-27 02:19:39 +01:00
Hypolite Petovan a11b47f93d Add profile URL search
- Move post URL search to private method in Module\Search\Index
2019-12-26 20:17:12 -05:00
Hypolite Petovan 016507f346 Use BaseURL::redirect instead of deprecated App->internalRedirect in Search\Index 2019-12-24 17:37:22 -05:00
Hypolite Petovan 1c9cb42d98 Move search term emptiness check before content checks in Search\Index 2019-12-24 17:17:35 -05:00
Hypolite Petovan ec7eb9d83a Rename BaseSearchModule::performSearch to performContactSearch to remove purpose confusion 2019-12-24 17:15:41 -05:00
Hypolite Petovan b610d4e82d Remove group management restrictions on pending and blocked in Module\Group 2019-12-24 16:44:43 -05:00
Tobias Diekershoff 00756737b5 Merge branch 'master' 2019.12 into develop 2019-12-23 20:03:47 +01:00
Michael 1af52dd050 Fix: Newer Friendica servers had been detected as ActivityPub 2019-12-21 13:51:25 +00:00
Hypolite Petovan 33ea5dfe35 Add check for $_REQUEST key existence in Module\Item\Compose
- Addresses https://github.com/friendica/friendica/issues/7677#issuecomment-566254464
2019-12-19 07:48:08 -05:00
Philipp 5197833c55
Merge pull request #7930 from MrPetovan/task/7887-api-followers-request
Add POST follow request Mastodon API endpoint
2019-12-18 22:12:52 +01:00
Hypolite Petovan 6e4a428c73
Merge pull request #7907 from nupplaphil/task/reduce_app_deps
Cleanup Session/Authentication
2019-12-14 09:53:40 -05:00
Michael 543c8f8459 Use localuser() 2019-12-12 15:57:08 +00:00
Michael 39560218f8 Issue 7659: Display blocked and ignored public contacts as well 2019-12-12 11:58:57 +00:00
nupplaPhil 1408908c84
Refactor Session Handling (make it more simple & handler are now handler again) 2019-12-11 20:30:31 +01:00
Hypolite Petovan 9a0a11ed39 Improve Api\Mastodon\Account with data from apcontact
- Original work by @annando
2019-12-11 08:25:45 -05:00
Hypolite Petovan 2d47952921 Add POST follow request Mastodon API endpoint 2019-12-11 08:25:44 -05:00
Hypolite Petovan 1625330e70 Switch Api\Mastodon\FollowRequests to list introductions instead of pending contacts 2019-12-11 08:24:17 -05:00
Hypolite Petovan 0656e9ece4 Update web modules handling introduction to use new model class 2019-12-11 08:24:17 -05:00
Hypolite Petovan c239d218d8 Update Base\Api::login to return the authentication status 2019-12-11 08:24:16 -05:00
Hypolite Petovan 1c69dda2e1
Merge pull request #7926 from annando/api-instance
API: Added endpoints /instance and /instance/peers
2019-12-11 04:07:49 -05:00
Michael 3388274f9a Removed unneeded function 2019-12-11 08:26:18 +00:00
Michael 9296a55dfb Added entities 2019-12-11 06:51:59 +00:00
Michael 4e2804d783 Added some more data 2019-12-10 23:05:25 +00:00
nupplaPhil b085098b49
Make 2Factor "tel" field instead "number"
- because of missing copy&paste buttons at number
2019-12-10 22:44:45 +01:00
Michael 1958bde4c0 API: Added endpoints /instance and /instance/peers 2019-12-10 21:27:09 +00:00
Hypolite Petovan c6d422a188 Update Module\Help to use anchor words for titles
- Previous anchors are kept for links backward compatibility
2019-12-09 22:50:37 -05:00
Hypolite Petovan 8016cb3cee Add GET /api/v1/follow_requests Mastodon API endpoint 2019-12-09 22:50:36 -05:00
Hypolite Petovan b365ffc3b5 Add API base module 2019-12-09 22:50:36 -05:00
nupplaPhil 54392fab81
Move Cookie to own class (with tests)
Move Authentication to App namespace
2019-12-08 22:45:34 +01:00
nupplaPhil 96555a7385
Refactor "Authentication" class with four main methods:
- withSession() - for auto authentication with Session/Cookie variables
- withOpenId() - for authentication with an OpenID account
- withPassword() - for authentication with Password
- setForUser() - for setting the user auth context of the current session

Refactor "Session" class - contains now "native" Session Management methods
2019-12-05 23:02:51 +01:00
nupplaPhil 18a3d18ba6
Move Authentication methods to class "Authentication" 2019-12-05 23:02:50 +01:00
nupplaPhil c28f1fec51
General usage of type in input fields 2019-12-05 21:42:33 +01:00
nupplaPhil e6da666885
Make Two Factor Field numeric 2019-12-05 20:19:25 +01:00
Michael d34052b332 Make quoted announces look better / more announce improvements 2019-12-04 07:02:39 +00:00
Hypolite Petovan c3d88aca39 Update the return value of Item\Ignore to integer
- Array is unnecessary
2019-11-30 23:15:58 -05:00
Michael Vogel 2f2480d88d
Merge pull request #7876 from MrPetovan/task/7308-backport-compose-acl
Generalize the Compose ACL to the whole site
2019-11-28 21:24:20 +01:00
Hypolite Petovan 8f4f6899dd Update composer module to use the new ACL selector
- Remove ACL-specific code from compose-footer
- Move compose-footer template remaining content to compose.js
2019-11-28 12:54:56 -05:00
Hypolite Petovan ae3d4f63a3 Use visibility tags input for the default ACL selector
- Move friendica-tagsinput to default view folder
- Update all references to ACL::getFullSelectorHTML
- Fix theme-specific issues with the new ACL
2019-11-28 12:54:53 -05:00
Michael 0979daddac Modules separated 2019-11-28 07:07:34 +00:00
Michael cb37588375 We can always send via SMTP, receiving mails is via IMAP 2019-11-27 07:44:59 +00:00
Michael ae306ea7de rss is inbound 2019-11-27 07:38:57 +00:00
Michael 054a111f3c Twitter is also inbound 2019-11-27 07:36:24 +00:00
Michael a26689f69c remove unused variable 2019-11-27 07:32:46 +00:00
Michael 890bbfa1a7 We now support nodeinfo version 2 / basic nodeinfo data is always enabled 2019-11-27 07:25:54 +00:00
Michael Vogel f0ffc6df38 Don't use the creation date when transmitting to Diaspora 2019-11-22 21:24:02 +01:00
Hypolite Petovan babcd24412
[hotfix] Fix syntax error in Module\Register
- Prevents registration
- Addresses https://github.com/friendica/friendica/issues/7675#issuecomment-552070076
2019-11-09 01:09:26 -05:00
Michael bdacda32ba Pinning: Missing file added 2019-11-09 03:17:18 +00:00
Michael fc94cad5f2 Pinned posts now work for visitors in the intended way 2019-11-08 06:52:44 +00:00
Hypolite Petovan 2200996d44
[hotfix] Prevent fatal error in profile with pinned posts
- `$a->profile['profile_uid']` may not be set
- Addresses https://github.com/friendica/friendica/issues/7675#issuecomment-551255174
2019-11-07 15:51:05 -05:00
Michael 91ad7936f3 Only sort the profile after pinned 2019-11-07 07:39:50 +00:00
Michael ed58af25a5 show pinned items 2019-11-07 06:53:18 +00:00
Michael 02c43f283e Changed exceptions 2019-11-05 22:28:12 +00:00
Michael 7adc3460b3 Exceptions 2019-11-05 22:13:33 +00:00
Michael 8c03bdada9 parameters now are having a default value and are optional 2019-11-05 21:48:54 +00:00
Michael bc2694bf7f Redo some changes 2019-11-05 20:28:35 +00:00
Michael bd62d548db Added parameters 2019-11-05 20:22:54 +00:00
Michael abe6724629 Added parameter to rawContent 2019-11-05 19:16:26 +00:00
Michael 30e02beb46 New module to pin posts 2019-11-05 19:16:11 +00:00
Philipp 4daa3d37c1
Merge pull request #7812 from tobiasd/20191103-tarpid
a hidden field for the registration form
2019-11-04 11:03:54 +01:00
Philipp d0068170db
Merge pull request #7806 from tobiasd/20191102-csvexport
added export and import of followed contacts to and from  CSV files
2019-11-03 20:28:08 +01:00
Tobias Diekershoff 1377d13055 ypot 2019-11-03 17:37:53 +01:00
Tobias Diekershoff 7ca202baad add a tar pid to the registration form 2019-11-03 17:05:06 +01:00
Tobias Diekershoff d3122c396e really there is no App 2019-11-03 15:53:32 +01:00
Tobias Diekershoff 9b03e2a564 there was no App 2019-11-03 15:07:29 +01:00
Tobias Diekershoff 0c873a0548 mv q() to DBA::select() 2019-11-03 14:03:11 +01:00
Tobias Diekershoff e5e87d546d we only need one contact export, D* _only_ exports the entire profile 2019-11-03 12:59:14 +01:00
Tobias Diekershoff 955a84a266 added export and import of followed contacts to and from CSV files 2019-11-03 00:12:16 +01:00
Hypolite Petovan 50a2e7001e Replace last instance of local_user() used to guess authentication status in Module/Contact/Hovercard 2019-11-02 12:48:04 -04:00
Hypolite Petovan ff27f45cb9 Move mod/hovercard to src/Module/Contact/Hovercard
- Rework hovercard.js to remove JS template interpolation
- Remove template/json output from Module/Contact/Hovercard
2019-11-02 12:48:03 -04:00
Hypolite Petovan b543ee8ac7
Merge pull request #7726 from tobiasd/20191010-uexport
move uexport module to src
2019-11-02 07:46:57 -04:00
Tobias Diekershoff 8bea9e7523 mv URL path uexport -> userexport 2019-11-02 12:44:46 +01:00
Tobias Diekershoff 34932e12bf mv q() to DBA::p() 2019-11-02 12:12:29 +01:00