Commit Graph

47 Commits

Author SHA1 Message Date
Michael 4b695e361c Automatically close the registration when the admin is inactive 2024-03-22 04:19:40 +00:00
Michael 89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00:00
Hypolite Petovan 46180d7d5b Move System::jsonError to BaseModule->jsonError
- This will ensure headers set in BaseModule->run will be carried in jsonError scenarios
- Make BaseApi->checkThrottleLimit an object method to use BaseModule->jsonError
- Deprecate jsonError() method in Core\System
2023-09-24 07:08:15 -04:00
Hypolite Petovan 81279dad9e Move System::jsonExit to BaseModule->jsonExit
- This will ensure headers set in BaseModule->run will be carried in jsonExit scenarios
- Deprecate jsonExit() method in Core\System
2023-09-24 07:08:15 -04:00
Hypolite Petovan 9c23a4511d
Merge pull request #13291 from Quix0r/features/config-blocklist-published
Configuration key added to publish/hide blocklist
2023-08-12 11:31:42 +02:00
Philipp Holzer 9f18222a06
Unify "Capability" 2023-07-26 21:44:31 +02:00
Roland Häder 3111c2fd5c
Renamed to 'public' after feedback 2023-07-26 10:20:14 +02:00
Roland Häder bcd2b1c523
Fixed:
- allow administrator to choose whether the blocklist is published under
  `/about` or later any other API (e.g. common is
  `/api/v1/instance/domain_blocks`).
2023-07-17 15:01:47 +02:00
Hypolite Petovan 9f943650a9 Hide blocklist from anonymous users on closed registration nodes 2023-07-09 08:23:35 -04:00
Hypolite Petovan f20caf4c3a Refactor DI out from Module\Friendica 2023-07-08 22:24:03 -04:00
Hypolite Petovan 6e2ab6c3af Centralize Vary header declaration in ActivityPub::isRequest
- Vary header should be set every time we vary the display based on an HTTP header value
2023-07-08 22:24:01 -04:00
Gidi Kroon 40783db161 Make requested changes 2023-06-25 20:54:04 +02:00
Gidi Kroon 6a5266c6b8 Add Vary header in case of content negotiation
Sometimes we return different content depending on whether JSON, XML or
HTML was requested in the Accept request header. The Vary response
header should list that header in these cases, to allow caching
frameworks to determine what to cache.
2023-06-25 03:22:41 +02:00
Hypolite Petovan 30e1851747 Cast the base URL as string in /friendica/json
- This was causing the data.url key to have no value, which broke the directory integration
2023-03-12 17:55:57 -04:00
Philipp Holzer f0c29edcde
Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Philipp Holzer 1e574d5383
Refactor IManageConfigValues interface 2023-01-03 14:22:04 +01:00
Hypolite Petovan 1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Philipp Holzer 10f8631cd9
Replace PostUpdate key-value config entries with key-value pair entries 2022-12-29 21:53:56 +01:00
Michael 62a0d55fc8 The friendica constants have been moved to the app class 2022-10-17 10:37:48 +00:00
Hypolite Petovan 7d7a5a65e9 Add download feature for domain block list
- Add new /blocklist/domain/download route
- Add link on /friendica page
2022-07-27 11:54:50 -04:00
Roland Häder 1e890e16ac
Switched maximum database update with currently worked on to "current/max" as
this is understandable that update X of maximum Y is applied.

Signed-off-by: Roland Häder <roland@mxchange.org>
2022-06-08 11:48:05 +02:00
Michael d15023fe4b Unified JSON exit 2022-04-09 11:58:01 +00:00
Michael 51b2bf6f70 Avoid returning of the actor when requesting friendica/json 2022-03-28 13:12:45 +00:00
Balázs Úr e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Philipp Holzer 8bdd90066f
Make `BaseModule` a real entity
- Add all dependencies, necessary to run the content (baseUrl, Arguments)
- Encapsulate all POST/GET/DELETE/PATCH/PUT methods as protected methods inside the BaseModule
- Return Module content ONLY per `BaseModule::run()` (including the Hook logic there as well)
2021-11-27 12:40:36 +01:00
Philipp Holzer 489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
Philipp Holzer 714f0febc4
Replace `$parameters` argument per method with `static::$parameters` 2021-11-14 23:49:05 +01:00
Hypolite Petovan dfb043ce60 Add Exception for empty User::getOwnerDataById(0 return case in Protocol\ActivityPub\Transmitter::getProfile()
- Address https://github.com/friendica/friendica/issues/10473#issuecomment-882781552
- Add try-catch blocks to all references of Protocol\ActivityPub\Transmitter::getProfile()
2021-07-27 16:46:08 -04:00
Michael df558d4056 Completely removed argc/argv 2021-07-25 15:23:37 +00:00
Balázs Úr 054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Michael cb5a9ae286 Issue 9363: Display the latest post update version 2020-10-04 20:46:42 +00:00
Michael 50b5483ee1 Ability to set the database version 2020-09-13 15:57:24 +00:00
Michael 7dbf72e454 We now fetch data with an automatically generated system user 2020-08-22 14:48:09 +00:00
Michael e06d9f20cf AP: Always sign requests 2020-07-29 05:12:16 +00:00
nupplaPhil 23c64b9a11
Add license info at Friendica classes 2020-02-09 15:45:36 +01:00
Philipp Holzer d6efc90194
cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
Philipp Holzer 5dfee31108
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:16 +01:00
Michael eb011f47bb Publish lowercase 2020-01-12 21:13:16 +00:00
Philipp Holzer e944d7bed6
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Philipp Holzer fceb4f3823
Refactor dynamic App::getConfig() to static DI::config() 2019-12-29 20:17:40 +01:00
Philipp Holzer 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
Michael 8c03bdada9 parameters now are having a default value and are optional 2019-11-05 21:48:54 +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
Philipp Holzer 9123361d61
added feedback 2019-05-05 10:00:28 +02:00
Philipp Holzer 28d6441d69
add PHP doc 2019-05-04 10:18:41 +02:00
Philipp Holzer 6f787f2422
Move mod/friendica to src/Module/Friendica 2019-05-04 10:14:29 +02:00