1
0
Fork 0
Commit graph

95 commits

Author SHA1 Message Date
d2da2492b7 old boot.php functions replaced in src/module 2022-10-19 08:53:45 -04:00
018858934b The priority is now a class constant 2022-10-17 05:49:55 +00:00
f7b85092b0 Some more changed log levels 2022-08-31 05:01:22 +00:00
b63ad63c29 Config for receiver / fix fatals 2022-07-28 21:16:42 +00:00
6c5acf9ee0
Fixed:
- "Argument 3 passed to Friendica\Model\Photo::createPhotoForExternalResource()
  must be of the type string, null given
2022-06-27 15:16:16 +02:00
b8353a6eb7
Changes:
- reformatted some array
- added missing documentation
- added type-hints
- changed double-quotes to single
2022-06-23 17:30:14 +02:00
fa14a02a19
Changes:
- added type-hints
- added documentation
- changed double-quotes to single
2022-06-18 23:12:52 +02:00
e0a0c57c44 Use platform specific default avatar pictures 2022-06-13 05:18:54 +00:00
f6167b4cfd New function to exit the program 2022-05-18 02:13:54 +00:00
4016a576d5 Log the execution time 2022-05-17 20:47:23 +00:00
d9de8b6d2f Remove test logging 2022-05-10 18:37:02 +00:00
fae414fedd Fix local avatar, improve speed for fetching cached photos 2022-05-10 18:18:24 +00:00
9eafcf8484 Update contact when the avatar hadn't been found 2022-04-28 16:46:52 +00:00
73c3b21665
Move ACCEPT constants to own "enum" class 2022-04-02 20:26:11 +02:00
1fae0123ec Some more "accept" parameters are added 2022-03-29 06:24:20 +00:00
3b6c40e2e6 Check the existence of the uid field before accessing it in Module\Photo
- Address https://github.com/friendica/friendica/issues/11218#issuecomment-1039512291
2022-02-15 15:59:35 -05:00
c7b3c071c7 Issue 11034: Use the profile photo for local users 2022-02-01 19:12:33 +00:00
bbda69a736 Don't store the default header in the contact table 2022-01-09 10:38:36 +00:00
59358077c7 First support for user headers 2022-01-08 22:43:11 +00:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
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
5879535822
Switch static::$parameters to $this->parameters 2021-11-14 23:49:07 +01:00
489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
714f0febc4
Replace $parameters argument per method with static::$parameters 2021-11-14 23:49:05 +01:00
1f7a3fb698 Accept photo fetching for octet-stream as well 2021-11-02 08:10:12 +00:00
516018861e Merge remote-tracking branch 'upstream/develop' into error-handling 2021-10-31 05:25:39 +00:00
4236a9a105 Improved http error handling 2021-10-29 23:21:07 +00:00
2ab0d06996
Restructure Storage to new paradigm 2021-10-27 20:00:19 +02:00
7fd202dbc9 Handle invalid avatar pictures 2021-10-24 11:33:35 +00:00
Michael Vogel
0509e8f37e
Update src/Module/Photo.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-10-04 21:17:22 +02:00
Michael Vogel
790875d8be
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-10-04 21:06:13 +02:00
b2c2283817 separate parameter values for different functionalities 2021-10-04 18:04:41 +00:00
9eba41598d Code review changes 2021-10-04 14:01:46 +00:00
43a17b6129 Merge remote-tracking branch 'upstream/develop' into photo-guid 2021-10-04 06:21:19 +00:00
d30dc52101 Access contact avatars by guid 2021-10-04 06:13:52 +00:00
297ff76590 Relax check on id parameter in /photo
- Address https://github.com/friendica/friendica/issues/10756#issuecomment-933020126
- Address https://github.com/friendica/friendica/issues/10755#issuecomment-933020316
2021-10-03 20:59:47 -04:00
c84d4104e8 Add missing Module\Photo route for post-media id with no customsize 2021-10-03 07:58:52 -04:00
5112dd06f2 Add missing Module\Photo route for contact avatar 2021-10-03 07:48:46 -04:00
c1ab3801ba Replace remaining reference to Model\Photo::stripExtension 2021-10-03 05:52:53 -04:00
8cb0bb5deb Switch uid with nickname in user picture URLs
- Keep previous URL scheme fallback as remote contact avatar URLs pointing to local user avatar URLs need to update
2021-10-02 19:06:59 -04:00
7cdd2d1336 Refactor User::getAvatarUrlForId into getAvatarUrl
- Use user/owner array as parameter instead of uid
- Rename $profile variables to $owner when it's the result of User::getOwnerDataByNick
- Replace Module\Photo::stripExtension with native pathinfo() calls
2021-10-02 19:06:25 -04:00
c17bc55158
Introduce InvalidClassStorageException and adapt the code for it 2021-08-16 23:27:42 +02:00
a8442e41ab Improved error message for external resources 2021-08-06 04:02:42 +00:00
aed5e4cc96 New struture for post related links 2021-07-05 18:45:49 +00:00
47904f99c2 Removal of duplicated photo entries for a contact 2021-07-04 10:40:03 +00:00
c72abe48a8 Fixed fetching private local images 2021-07-03 15:29:27 +00:00
8e9433f2e9 Fix: Fetching of non public photos 2021-07-01 18:05:54 +00:00
ec49afa116 Guess the mimetype in advance 2021-06-30 04:28:03 +00:00
39fe60744b Grammar 2021-06-30 03:49:43 +00:00
d2b32a151e Detect the mimetype for external resources 2021-06-30 03:47:53 +00:00