Michael
6fe916a390
API: improved mail handling
2021-05-22 13:37:04 +00:00
Michael
e10f3f26b9
Removed unused parameter
2021-05-20 04:44:45 +00:00
Michael
db8b0b9666
The next mail endpoint is done
2021-05-20 04:39:45 +00:00
Michael
3d65ef3af2
Indentions
2021-05-19 22:20:56 +00:00
Michael
c1212dce03
Indentions
2021-05-19 22:09:25 +00:00
Michael
70259965df
API: Support for private mails
2021-05-19 21:56:50 +00:00
Michael
3172b0bcf2
Log API errors
2021-05-19 09:03:41 +00:00
Michael
49207a8624
Added scope check
2021-05-16 07:37:11 +00:00
Michael
f001f52e39
API: Fix relationships
2021-05-15 15:02:15 +00:00
Michael
b34ee320b0
API: Many item related endpoints added
2021-05-15 10:08:47 +00:00
Michael
45c2cc3887
API: Account actions
2021-05-14 21:51:32 +00:00
Michael
7975bc244d
Refine OAuth flow
2021-05-13 11:26:56 +00:00
Michael
d1e109d9be
Improved error handling
2021-05-12 03:05:22 +00:00
Michael
975c32116d
Handling media in shared posts
2021-05-11 23:10:59 +00:00
Michael
8eacfbc570
Fix context order / notice fixed
2021-05-11 19:53:19 +00:00
Michael
bade0a2345
Improved cards handling, simplified Bearer handling
2021-05-11 19:15:05 +00:00
Michael
82003bbe47
Login prototype
2021-05-11 06:30:20 +00:00
Michael
1ee1507f3b
Whitespaces ...
2021-05-09 22:26:32 +00:00
Michael
585d283ff9
Preparation for Oauth client registration
2021-05-09 22:23:21 +00:00
Michael
a696b7f427
Renamed functions
2021-05-09 18:44:08 +00:00
Michael
1c6e915514
Media is now supported as well
2021-05-09 12:59:23 +00:00
Michael
f5c7f9670f
Remove blanks
2021-05-09 11:54:34 +00:00
Michael
cc5d4db6a3
Notifications are now supported as well
2021-05-09 11:50:05 +00:00
Michael
5bb5c44bd9
API: added account related endpoints
2021-05-09 09:35:51 +00:00
Michael
dd38cc330f
API: We now support two more timeline api endpoints
2021-05-07 21:28:48 +00:00
Michael
8685e5ca32
Reworked media handling
2021-04-26 06:50:12 +00:00
Balázs Úr
054c301ef0
Update copyright
2021-03-29 08:40:20 +02:00
Michael
ce6ad1aa73
Get rid of the "item" table, enhanced "post" tables
2021-02-13 19:56:03 +00:00
Michael
c1d99d6c4c
Most user-item traces removed
2021-01-31 23:37:34 +00:00
Hypolite Petovan
82e094179c
Rename notify classes according the feature name, not the table name
2021-01-24 09:33:23 -05:00
Michael
4157db5473
"item" is replaced by "post-view" / postupdate check added
2021-01-17 20:32:13 +00:00
Michael
2b1d0b9db8
"selectForUser" and "" selectFirstForUser" is now moved to Post
2021-01-16 22:37:27 +00:00
Michael
2fa692bcce
New post class in the rest of the classes
2021-01-16 04:16:09 +00:00
Michael
d666501ee0
Fix fatal error
2020-12-29 22:14:54 +00:00
Hypolite Petovan
8c1e2b9800
Throw exception when item doesn't exist in Factory\Api\Mastodon\Status->createFromUriId
...
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-750464977
2020-12-27 21:15:21 -05:00
Michael
deb6b7a7c3
Fallback to database lock if locking fails
2020-11-16 19:46:20 +00:00
Michael
ba4685dfb1
API: Support for reshared items
2020-11-01 11:01:57 +00:00
Michael
c030275815
API: accounts and trends
2020-10-31 22:32:26 +00:00
Michael
e6030e5f82
API: Media attachments are now supported
2020-10-31 16:10:27 +00:00
Michael
a012234d82
Publish the provider fields in the API
2020-10-26 19:40:09 +00:00
Michael
44a4b66539
Improved self contact detection
2020-10-25 20:40:25 +00:00
Michael
d8d96e6e61
Display the user fields for the admin account
2020-10-25 20:32:45 +00:00
Michael
319ceeda3b
Publish the profile fields
2020-10-25 18:21:18 +00:00
Michael
a643888aeb
More data for the Mastodon status class
2020-10-25 16:13:31 +00:00
Michael
097e3d6dcc
Fix Fatal error: Uncaught TypeError: Argument 1 passed to Friendica\Model\Contact::getByURL() must be of the type string, null given
2020-10-20 15:15:33 +00:00
Philipp
d39ee428f0
Introduce "static/env.config.php" for environment variable mapping to config cache entries
...
- Added new database.port config value (used for MYSQL_PORT)
- Removed now obsolete db environment variable functionality
- Added functionality to load env variables (overwrites DB based cached)
2020-10-06 20:43:29 +02:00
Michael Vogel
2bb725fa30
Apply suggestions from code review
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-09-08 03:39:51 +02:00
Michael
59374eb6c6
Use "StatusCounts" class
2020-09-07 18:24:11 +00:00
Michael
1bca280eae
StdClass instead of arrays
2020-09-07 14:34:05 +00:00
Michael
db6282b5e2
API: Counts added, local query improved
2020-09-06 07:12:04 +00:00
Michael
cd3d4ae4e6
API: New entity "status"
2020-09-03 18:57:18 +00:00
Michael
d9fc0ae0ea
Using a constant value for the default avatar
2020-08-18 20:30:24 +00:00
Michael
0c73531da1
Poco and gcontact (mostly) removed
2020-08-01 16:15:18 +00:00
Michael
71b6226909
Some more avatar function replacements
2020-07-28 19:30:55 +00:00
Hypolite Petovan
afb882048e
Generate callstack value from inside Profiler::saveTimestamp
...
- Save a massive amount of time computing callstacks when profiling is disabled
2020-07-27 02:33:05 -04:00
Michael
fc0312451d
Changed parameter order for getByURL
2020-07-15 17:06:48 +00:00
Michael
d9c6a46ffe
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
2020-07-15 04:42:04 +00:00
Hypolite Petovan
173264eaab
Add Twitter User Object and Factory
2020-06-08 21:51:42 -04:00
Michael
b837c487c5
Fix "gravity" notice
2020-05-29 21:41:10 +00:00
Michael
973abb6196
Replace "id = parent" checks with "gravity" checks
2020-05-27 12:19:06 +00:00
Michael
0cf517ad76
Use constants for the BBCode modes
2020-05-16 16:28:15 +00:00
Michael
3bd1f3a836
No more gender
2020-02-16 10:55:18 +00:00
nupplaPhil
23c64b9a11
Add license info at Friendica classes
2020-02-09 15:45:36 +01:00
Hypolite Petovan
608e634858
Update Mastodon API with new profile field entity
2020-01-29 23:30:38 -05:00
Hypolite Petovan
07a4bb73fa
Add DDD classes for Mastodon\Field entity
2020-01-29 23:26:07 -05:00
nupplaPhil
c2b8c65104
Merge "notification" routes
2020-01-28 23:21:24 +01:00
nupplaPhil
582f6bd4a3
Refactor API notification usage
...
- Remove "mapFields()" from BaseModel
- Add new Notification API entity (including collection)
- Add new NotificationFactory method "getApiList()"
2020-01-28 21:28:57 +01:00
Hypolite Petovan
bd910342df
Add custom emojis Mastodon API endpoint
2020-01-28 08:14:48 -05:00
Hypolite Petovan
1ac9107e5f
Move Mastodon API factories to Factory\Api\Mastodon
2020-01-28 07:33:55 -05:00
Hypolite Petovan
0de8e4db08
Move Mastodon API entities to src/Object
2020-01-27 20:01:32 -05:00
nupplaPhil
ac1a20e5fd
Fix Introductions tab
2020-01-26 21:39:50 +01:00
nupplaPhil
0840938dff
Rename classes
...
- Repository/Model Notification => Notify
- Factory/Object Notification => Notification
2020-01-26 20:30:24 +01:00
nupplaPhil
b85511b00d
Improvements:
...
- Fix API-select
- Introduce OTYPE-constants
- Rename `IntroductionFactory` methods
2020-01-26 14:33:10 +01:00
nupplaPhil
74f3a2f90c
Fix API result, add PHPDoc and cleanup object construction
...
Fix missing getters
fix data array
fix missing "$" for template-variables
Remove lazy-loaded parent notification instance (for now..)
2020-01-25 21:15:01 +01:00
nupplaPhil
0850fb88dd
ReWork Notification Model/Module/Object/Repository/Factory
...
- Introduce Repository for interaction with "notify" table
- Introduce Factory for read-only notification objects (they're just loosely based on notification the table!)
- Introduce Objects for type-safe usage at the presentation layer
- Reworked Model, which is now fully based on the notify table, including generated fields (cache, ..)
2020-01-25 19:58:22 +01:00
nupplaPhil
ed9392469e
Remove unneeded Config namespace usages
2020-01-19 22:50:44 +01:00
nupplaPhil
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone
2020-01-19 22:23:44 +01:00
nupplaPhil
cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone
2020-01-19 21:29:36 +01:00
Michael
0a4119adaf
@brief is removed completely
2020-01-19 06:05:23 +00:00
nupplaPhil
424c87195b
CleanUp Cache namespace
...
- Introduce enum "Duration"
- Introduce enum "Type"
- Move "Cache\Cache" to "BaseCache"
2020-01-18 15:41:19 +01:00
Hypolite Petovan
6b8db5ad13
Update the Introductions domain to use repository, model and collection
2020-01-06 21:39:05 -05:00
Hypolite Petovan
5a1abb8c7d
Introduce Mastodon entity factories and API\Entity
2020-01-06 21:39:05 -05:00
Hypolite Petovan
efadab66c5
Update wrong/missing references to classes
2019-12-29 21:51:16 -05:00
nupplaPhil
c1dbb25656
Creating interfaces for Config/PConfig & fix tests
2019-12-29 20:18:19 +01:00
nupplaPhil
673c4537e4
Session - Remove unneeded cookie parameter
2019-12-29 00:03:58 +01:00
nupplaPhil
1408908c84
Refactor Session Handling (make it more simple & handler are now handler again)
2019-12-11 20:30:31 +01:00
nupplaPhil
b9f8762eb3
Use Native Session functions (global "$_SESSION" variable) for Memory class because of the direct usage of the $_SESSION class all around the codebase
2019-12-10 22:29:49 +01:00
nupplaPhil
eca3396851
rename usage
2019-12-10 21:52:23 +01:00
nupplaPhil
07d2909927
double use
2019-12-10 21:51:06 +01:00
nupplaPhil
ce2610000b
Renaming class
2019-12-10 08:49:33 +01:00
nupplaPhil
cad7e534a4
Add phpdoc
2019-12-10 00:50:05 +01:00
nupplaPhil
555513e4b4
Add Session Management instances (including Depenency Injection)
...
- Prerequesite for mocking Sessions
- Reduce "App" class complexity
2019-12-10 00:44:56 +01:00
Philipp Holzer
4e32d46f97
switch case
2019-10-22 22:48:54 +02:00
Philipp Holzer
6b2c28e2d7
Add checks & realpath() usage
...
- New util class "FileSystem"
- Add check in admin summary too
2019-10-22 22:47:37 +02:00
Philipp Holzer
0e84a843a4
Add Fallback in case the logfile isn't accessible.
...
- Fixes https://github.com/friendica/friendica/issues/7756#issuecomment-544227862
2019-10-21 21:53:55 +02:00
Philipp Holzer
b13dbb3dcb
Remove $_SERVER['PHP_SELF'] usage
2019-09-17 16:47:00 +02:00
Philipp Holzer
46655eac70
Remove unnecessary parameter
2019-08-17 19:41:59 +02:00
Philipp Holzer
290dd2ab39
moved rest of BaseURL
2019-08-15 17:36:07 +02:00
Philipp Holzer
19777baa79
- Move constants to the "Cache" class (more transparent than inside the interface)
2019-08-04 15:53:28 +02:00
Philipp Holzer
34e4968c06
Adding possibility to use a different cache-backend for locking and caching
...
- Renaming *LockDriver to *Lock since it isn't a "driver" anymore
2019-08-04 15:42:39 +02:00
Philipp Holzer
86bf2ee45a
Rename *CacheDriver to *Cache because they don't act as driver anymore
2019-08-04 10:26:53 +02:00
Philipp Holzer
d56bd28a07
Refactor Cache/Lock to DICE
...
- Refactor Cache classes
- Refactor Lock classes
- Improved test speed (removed some seperate class annotations)
2019-08-03 20:51:58 +02:00
Philipp Holzer
6c2cf494b5
Remove DependencyFactory
...
- Include all necessary classes in `dependencies.config.php`
- Add DI-reference to BaseObject (acts as a global registry)
- Refactor all static "init()" methods to use the global registry
- Refactor Logging for Worker-Logger a little bit
2019-07-27 23:54:12 +02:00
Philipp Holzer
55999730e0
Introduce DICE
...
- Adding dice library
- Adding dependency config
- Removing Factories
- Refactoring App\Mode constructor
- Refactoring App\Router constructor
- Refactoring BasePath for DI usage
- Refactoring ConfigFileLoader constructor
- Refactoring Profiler constructor
- Adjust entrypoints (index, console, worker, ..)
- Adding functional test for DI
- Fix tests because of refactorings
2019-07-21 01:22:10 +02:00
Hypolite Petovan
0b97b32a59
Merge pull request #7379 from nupplaphil/task/refactor_l10n_for_test
...
Refactor L10n for testing
2019-07-16 16:03:42 -04:00
Philipp Holzer
92fb0a82ca
Dynamic config loading
...
- Move settings, defaults and dbstructure to directory 'static'
- Dynamic loading of config files (after the static loading)
- Filter out '-sample.config.php' and '-sample.ini.php' files
- Remove unnecessary ConfigFileManager
- Move ConfigFileLoader to Utils
- Add tests for multi-loading for INI, config and sample-filtering
2019-07-16 20:16:43 +02:00
Philipp Holzer
79e69ee528
Fix language (again ;-) )
2019-07-16 16:50:49 +02:00
Philipp Holzer
eb024a3718
Refactor L10n for testing
...
- Moving L10n to L10n\L10n
- Adding constructor information
- Adding to factory
- simplify/speedup tests
2019-07-16 16:44:47 +02:00
Philipp Holzer
9d98a4ce3a
Refactor PConfiguration
2019-07-15 20:13:53 +02:00
Philipp Holzer
aa249adf6d
some more minor fixups (phpdoc, unused using)
2019-07-14 22:49:17 +02:00
Philipp Holzer
a2c6240da0
some minor fixings
2019-07-14 22:26:36 +02:00
Philipp Holzer
4913502922
bugfix: add lost changes due merge
2019-07-14 22:12:45 +02:00
Philipp Holzer
a30200083a
BugFix: forgot configCache in ConfigFactory
2019-07-12 23:05:48 +02:00
Philipp Holzer
c82127ffb7
Splitting ConfigCache & PConfigCache
...
- Remove IConfigCache & IPConfigCache
- Add new PConfigCache
- Add missing Logger::init() (bugfixing tests)
2019-07-12 22:53:37 +02:00
Philipp Holzer
082634adbc
Moving from DBA to Database
2019-06-24 09:36:07 +02:00
Philipp Holzer
357d9b5108
Introduce HiddenString for Config-Values
2019-06-10 14:46:31 +02:00
Philipp Holzer
b56b56ccb6
friendica-6379 Monolog - logfile permission denied
2019-05-26 14:33:09 +02:00
Philipp Holzer
3ca8fa0e00
Support for APCu caching
2019-04-21 12:45:19 +02:00
Philipp Holzer
fa71a9a0ce
Improve redis configuration
...
- basic authentication
- switch database (0 - 15)
2019-04-20 13:40:40 +02:00
Philipp Holzer
0d08d5dabc
SetLogger fix
2019-04-14 18:40:39 +02:00
Philipp Holzer
90a38a00d8
Adding basepath, urlpath, hostname and ssl_policy to installation
2019-04-14 14:23:06 +02:00
Philipp Holzer
fbd056327a
DBA-Logger fix
2019-04-13 20:46:58 +02:00
Philipp Holzer
318a3ca785
Create own base URL class which holds the whole base url business logic
2019-04-09 08:31:16 +02:00
Hypolite Petovan
d6d31f43a1
Add App\Router dependency injection to App
...
- Moved collectRoutes method from App to App\Router
2019-04-05 23:16:12 -04:00
Philipp Holzer
23654ce566
Added Update checks
...
- Logging
- Console
- Admin overview
2019-03-24 22:51:30 +01:00
Philipp Holzer
49def0dc27
Adding ConfigFileSaver and tests
2019-03-24 13:47:35 +01:00
Philipp Holzer
383a6715c3
Added first version of ConfigCacheSaver
2019-03-23 19:34:54 +01:00
Philipp Holzer
6e6fb2de02
Fixing Logger Blacklist
2019-03-23 19:32:40 +01:00
Philipp Holzer
fab01ed0d3
Fix Legacy LogLevel mapping
2019-03-22 23:31:47 -04:00
Philipp Holzer
1a2527cdba
Move AppMode
2019-03-22 23:22:32 -04:00
Philipp Holzer
d03dedee63
Set Timezone to 'UTC' for every Logger (Develop)
2019-03-22 23:14:48 -04:00
Philipp Holzer
eec4ee3fed
Rename & Testfix
2019-03-22 23:13:25 -04:00
Philipp Holzer
81ba5376d0
Added StreamLogger and ProfilerLogger
2019-03-22 23:13:23 -04:00
Philipp Holzer
22f1983cc0
cleanup sysloglogger
2019-03-22 23:11:14 -04:00
Philipp Holzer
25b6db6aca
Moving Profiling to class
2019-03-22 23:07:39 -04:00
Philipp Holzer
4810ca570f
Refactored Logging environment (cleaned up)
2019-03-22 23:00:38 -04:00
Philipp Holzer
8237e73e26
Adding REAMDEs to directories
2019-03-22 22:56:57 -04:00
Philipp Holzer
dd333c76f8
Logger - Forgot Logger::init() with VoidLogger
2019-03-22 22:56:55 -04:00
Philipp Holzer
21158e7699
Syslog - Disabling
2019-03-22 22:55:46 -04:00
Philipp Holzer
9c5e0ae415
Adding SyslogLogger
2019-03-22 22:52:45 -04:00
Hypolite Petovan
579d42a215
Fix fatal error when using Logger::devLog
...
- Error message is "Call to a member function log() on null in src/Core/Logger.php:304"
2019-03-10 22:19:12 -04:00
Philipp Holzer
50b7d95b2a
Set Timezone to 'UTC' for every Logger
2019-03-09 14:28:31 +01:00
Philipp Holzer
e48c608db0
removed silent fail of logfile permission (should get fixed with #6745 )
2019-02-24 13:57:17 +01:00
Philipp Holzer
5fc42a744e
Replace string namespaces with ::class
2019-02-24 13:40:54 +01:00
Hypolite Petovan
1a0398a5b3
Merge pull request #6723 from nupplaphil/issue/6658-worker_id
...
Adding worker ID to log
2019-02-23 08:38:08 -05:00
Philipp Holzer
8c3aebc376
Bugfixings in Config
...
- replaced usage of "!<unset>!" with null-returns
- fixed bool settings (0/1)
- fixed overriding config-values
- fixed basepath problems
2019-02-22 23:51:13 +01:00
Philipp Holzer
a613523dd7
skip WorkerLogger for Logging
2019-02-22 20:45:13 +01:00
Philipp Holzer
5e5c39b0e1
Refactored DependencyFactory for Profiler
2019-02-17 21:12:12 +01:00
Philipp Holzer
cdcf1667d7
Adding DependencyFactory
2019-02-17 20:45:39 +01:00
Philipp Holzer
e1d9d67632
renamed Logger::setLogger() to Logger::init()
2019-02-17 20:44:08 +01:00
Philipp Holzer
80f1feabe5
Refactoring Logging to use Configuration
2019-02-17 20:43:52 +01:00
Philipp Holzer
eafcf3592d
Config FollowUp
...
- New Configuration (Config is now only holding the instance)
- New PConfiguration (PConfig is now only holding the instance)
- Config & PConfig-Adapter don't need "ConfigCache" anymore
- DB-Connection is now outside App->reload() for better dependency-chaining
2019-02-17 20:40:27 +01:00
Philipp Holzer
a3b9a8fe61
Excluding Profiler from Loglines (better using the class above)
2019-02-17 01:56:46 +01:00
Philipp Holzer
5e6e1a8025
Introducing Profiler
2019-02-16 23:11:30 +01:00
Philipp Holzer
0d096cf32e
type-hints
2019-02-04 09:35:01 +01:00
Philipp Holzer
d78ac57514
Updating type-hints and some naming conventions
2019-02-04 09:30:48 +01:00
Philipp Holzer
f3da5b3a2f
Bugfixing PConfig
2019-02-03 23:22:05 +01:00
Philipp Holzer
1e0e1674f2
4) Adding Factories to other entrypoints
2019-02-03 22:46:50 +01:00
Philipp Holzer
4af0119b73
3) Introducing ConfigFactory
2019-02-03 22:22:04 +01:00