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
19aef93560
Unified avatar paths
2021-06-29 20:26:58 +00:00
ebb9e0c2f5
Fix resizing
2021-06-28 19:38:03 +00:00
ffdbac7e41
Issue 10443: Fix requesting media content
2021-06-28 18:53:10 +00:00
2f06d271bb
Use a default value for "uid"
2021-06-28 13:58:06 +00:00
4f95622d73
Only user the user with attached media.
2021-06-28 12:40:58 +00:00
6f350c1e59
Use signed requests for fetching private images
2021-06-28 10:08:51 +00:00
7e200174d6
Replace attachment links in the body
2021-06-28 04:53:20 +00:00
dbf9132ea6
Fixed indendation
2021-06-28 01:34:29 +00:00
b46b7b08ba
Reduce the usage of the "proxifyUrl" function
2021-06-27 11:50:10 +00:00
9276f6823b
New class for external resources
2021-06-24 17:30:22 +00:00
96809b3fdd
API: Improved avatar handling
2021-06-24 07:08:38 +00:00
Balázs Úr
054c301ef0
Update copyright
2021-03-29 08:40:20 +02:00
447bac077e
Simplify the resizing
2020-12-26 21:24:36 +00:00
997319a41f
Use the raw data instead of an object
2020-12-26 19:31:39 +00:00