1
0
Fork 0
Commit graph

289 commits

Author SHA1 Message Date
e28a4265c5 API: First steps to support subscriptions 2021-08-15 00:30:41 +00:00
15b93b4459 "getUserNickname" is now "getLoggedInUserNickname" 2021-08-09 19:48:39 +00:00
b8fa75b2dd Changed function name 2021-08-09 15:29:07 +00:00
fc283ab928 Remove direct calls to App->user 2021-08-08 10:14:56 +00:00
e89d0f2599 Style 2021-07-31 06:22:08 +00:00
13529fa97d Support the "media_attachments" field 2021-07-30 22:39:13 +00:00
9b609ba19d Space added 2021-07-30 14:06:18 +00:00
48f2790593 Spaces removed 2021-07-30 14:05:57 +00:00
929de9081e All needed fields are now filled 2021-07-30 13:22:06 +00:00
93263a820d Function renamed, documentation added 2021-07-30 10:24:08 +00:00
6ea3d4aa61 Added API calls, removed fields 2021-07-29 10:34:31 +00:00
ab24f58bad Parser is now session 2021-07-27 13:56:28 +00:00
c89533a70b Support for stacked profiler analysis 2021-07-27 04:57:29 +00:00
30aad250df App->contact is now removed 2021-07-24 11:49:11 +00:00
01fd128502 API: Support for fetching mails with more "statuses" calls 2021-07-21 05:58:22 +00:00
c01ca1583c Added permission check 2021-07-20 21:45:42 +00:00
d267ba999c We now use the new account-user-view (and fixed the function name) 2021-07-11 09:39:34 +00:00
c89547aead Only proxify images 2021-06-27 19:06:05 +00:00
b46b7b08ba Reduce the usage of the "proxifyUrl" function 2021-06-27 11:50:10 +00:00
5a6c5e9a17
Fix wrong attachement index 2021-06-20 22:33:05 +02:00
d4387d45ee
Cleanup Code 2021-06-20 13:25:45 +02:00
322f0b3ecf
Cleanup Mastodon Factories 2021-06-20 13:25:45 +02:00
11d2440425 New functions for the post-view view 2021-06-16 10:16:01 +00:00
84028d7342 Proxify the media url 2021-06-11 03:51:11 +00:00
4ea30af752 Videos are now working as well 2021-06-10 19:55:43 +00:00
d3833f63e0 Fix account id of notifications 2021-06-01 22:00:12 +00:00
842cbbaf09 Added notifications for follow requests 2021-06-01 21:13:16 +00:00
49459821be Renamed function 2021-06-01 14:23:12 +00:00
3f0937dd42 API: Show activity notifications 2021-06-01 05:51:03 +00:00
c076545e3b API: Only show "bookmarked" on top level post 2021-05-27 10:49:15 +00:00
6fe916a390 API: improved mail handling 2021-05-22 13:37:04 +00:00
e10f3f26b9 Removed unused parameter 2021-05-20 04:44:45 +00:00
db8b0b9666 The next mail endpoint is done 2021-05-20 04:39:45 +00:00
3d65ef3af2 Indentions 2021-05-19 22:20:56 +00:00
c1212dce03 Indentions 2021-05-19 22:09:25 +00:00
70259965df API: Support for private mails 2021-05-19 21:56:50 +00:00
3172b0bcf2 Log API errors 2021-05-19 09:03:41 +00:00
49207a8624 Added scope check 2021-05-16 07:37:11 +00:00
f001f52e39 API: Fix relationships 2021-05-15 15:02:15 +00:00
b34ee320b0 API: Many item related endpoints added 2021-05-15 10:08:47 +00:00
45c2cc3887 API: Account actions 2021-05-14 21:51:32 +00:00
7975bc244d Refine OAuth flow 2021-05-13 11:26:56 +00:00
d1e109d9be Improved error handling 2021-05-12 03:05:22 +00:00
975c32116d Handling media in shared posts 2021-05-11 23:10:59 +00:00
8eacfbc570 Fix context order / notice fixed 2021-05-11 19:53:19 +00:00
bade0a2345 Improved cards handling, simplified Bearer handling 2021-05-11 19:15:05 +00:00
82003bbe47 Login prototype 2021-05-11 06:30:20 +00:00
1ee1507f3b Whitespaces ... 2021-05-09 22:26:32 +00:00
585d283ff9 Preparation for Oauth client registration 2021-05-09 22:23:21 +00:00
a696b7f427 Renamed functions 2021-05-09 18:44:08 +00:00
1c6e915514 Media is now supported as well 2021-05-09 12:59:23 +00:00
f5c7f9670f Remove blanks 2021-05-09 11:54:34 +00:00
cc5d4db6a3 Notifications are now supported as well 2021-05-09 11:50:05 +00:00
5bb5c44bd9 API: added account related endpoints 2021-05-09 09:35:51 +00:00
dd38cc330f API: We now support two more timeline api endpoints 2021-05-07 21:28:48 +00:00
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
ce6ad1aa73 Get rid of the "item" table, enhanced "post" tables 2021-02-13 19:56:03 +00:00
c1d99d6c4c Most user-item traces removed 2021-01-31 23:37:34 +00:00
82e094179c Rename notify classes according the feature name, not the table name 2021-01-24 09:33:23 -05:00
4157db5473 "item" is replaced by "post-view" / postupdate check added 2021-01-17 20:32:13 +00:00
2b1d0b9db8 "selectForUser" and "" selectFirstForUser" is now moved to Post 2021-01-16 22:37:27 +00:00
2fa692bcce New post class in the rest of the classes 2021-01-16 04:16:09 +00:00
d666501ee0 Fix fatal error 2020-12-29 22:14:54 +00:00
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
deb6b7a7c3 Fallback to database lock if locking fails 2020-11-16 19:46:20 +00:00
ba4685dfb1 API: Support for reshared items 2020-11-01 11:01:57 +00:00
c030275815 API: accounts and trends 2020-10-31 22:32:26 +00:00
e6030e5f82 API: Media attachments are now supported 2020-10-31 16:10:27 +00:00
a012234d82 Publish the provider fields in the API 2020-10-26 19:40:09 +00:00
44a4b66539 Improved self contact detection 2020-10-25 20:40:25 +00:00
d8d96e6e61 Display the user fields for the admin account 2020-10-25 20:32:45 +00:00
319ceeda3b Publish the profile fields 2020-10-25 18:21:18 +00:00
a643888aeb More data for the Mastodon status class 2020-10-25 16:13:31 +00:00
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
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
59374eb6c6 Use "StatusCounts" class 2020-09-07 18:24:11 +00:00
1bca280eae StdClass instead of arrays 2020-09-07 14:34:05 +00:00
db6282b5e2 API: Counts added, local query improved 2020-09-06 07:12:04 +00:00
cd3d4ae4e6 API: New entity "status" 2020-09-03 18:57:18 +00:00
d9fc0ae0ea Using a constant value for the default avatar 2020-08-18 20:30:24 +00:00
0c73531da1 Poco and gcontact (mostly) removed 2020-08-01 16:15:18 +00:00
71b6226909 Some more avatar function replacements 2020-07-28 19:30:55 +00:00
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
fc0312451d Changed parameter order for getByURL 2020-07-15 17:06:48 +00:00
d9c6a46ffe Replaced "getDetailsByURL" with "getByURL/getByURLForUser" 2020-07-15 04:42:04 +00:00
173264eaab Add Twitter User Object and Factory 2020-06-08 21:51:42 -04:00
b837c487c5 Fix "gravity" notice 2020-05-29 21:41:10 +00:00
973abb6196 Replace "id = parent" checks with "gravity" checks 2020-05-27 12:19:06 +00:00
0cf517ad76 Use constants for the BBCode modes 2020-05-16 16:28:15 +00:00
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
608e634858 Update Mastodon API with new profile field entity 2020-01-29 23:30:38 -05:00
07a4bb73fa Add DDD classes for Mastodon\Field entity 2020-01-29 23:26:07 -05:00
c2b8c65104
Merge "notification" routes 2020-01-28 23:21:24 +01:00
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
bd910342df Add custom emojis Mastodon API endpoint 2020-01-28 08:14:48 -05:00
1ac9107e5f Move Mastodon API factories to Factory\Api\Mastodon 2020-01-28 07:33:55 -05:00
0de8e4db08 Move Mastodon API entities to src/Object 2020-01-27 20:01:32 -05:00
ac1a20e5fd
Fix Introductions tab 2020-01-26 21:39:50 +01:00
0840938dff
Rename classes
- Repository/Model Notification => Notify
- Factory/Object Notification => Notification
2020-01-26 20:30:24 +01:00
b85511b00d
Improvements:
- Fix API-select
- Introduce OTYPE-constants
- Rename `IntroductionFactory` methods
2020-01-26 14:33:10 +01:00
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
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
ed9392469e
Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
d5a473abda
Shorten "PConfiguration" to "PConfig" again, since the Wrapper is gone 2020-01-19 22:23:44 +01:00
cb80108957
Shorten "Configuration" to "Config" again, since the Wrapper is gone 2020-01-19 21:29:36 +01:00
0a4119adaf @brief is removed completely 2020-01-19 06:05:23 +00:00
424c87195b
CleanUp Cache namespace
- Introduce enum "Duration"
- Introduce enum "Type"
- Move "Cache\Cache" to "BaseCache"
2020-01-18 15:41:19 +01:00
6b8db5ad13 Update the Introductions domain to use repository, model and collection 2020-01-06 21:39:05 -05:00
5a1abb8c7d Introduce Mastodon entity factories and API\Entity 2020-01-06 21:39:05 -05:00
efadab66c5 Update wrong/missing references to classes 2019-12-29 21:51:16 -05:00
c1dbb25656
Creating interfaces for Config/PConfig & fix tests 2019-12-29 20:18:19 +01:00
673c4537e4
Session - Remove unneeded cookie parameter 2019-12-29 00:03:58 +01:00
1408908c84
Refactor Session Handling (make it more simple & handler are now handler again) 2019-12-11 20:30:31 +01:00
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
eca3396851
rename usage 2019-12-10 21:52:23 +01:00
07d2909927
double use 2019-12-10 21:51:06 +01:00
ce2610000b
Renaming class 2019-12-10 08:49:33 +01:00
cad7e534a4
Add phpdoc 2019-12-10 00:50:05 +01:00
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
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
3ca8fa0e00
Support for APCu caching 2019-04-21 12:45:19 +02:00
fa71a9a0ce
Improve redis configuration
- basic authentication
- switch database (0 - 15)
2019-04-20 13:40:40 +02:00
0d08d5dabc
SetLogger fix 2019-04-14 18:40:39 +02:00