Commit graph

119 commits

Author SHA1 Message Date
Michael
8b7cb5d9ef Merge remote-tracking branch 'upstream/develop' into server-detection 2022-07-16 12:44:21 +00:00
Michael
cc75eb5d18 Improved server detection 2022-07-05 05:04:05 +00:00
Roland Häder
7eefb9aed8
Changed:
- empty() is maybe superflous here, still I would prefer a code style that is
  written explicitly and not rely on "magic casting"
2022-06-22 18:57:01 +02:00
Roland Häder
15d8341d9a
Converted multiple single-comment (//) to multi-line comment block (/* */) 2022-06-22 18:06:35 +02:00
Roland Häder
f1867463a0
Changes:
- added more type-hints
2022-06-21 13:47:37 +02:00
Roland Häder
bff57bb030
Changes:
- added type-hints
- added returned type-hints in interface (I checked all)
2022-06-19 14:00:31 +02:00
Michael
9eafcf8484 Update contact when the avatar hadn't been found 2022-04-28 16:46:52 +00:00
Philipp
3033f79529
head fixings 2022-04-08 20:48:57 +02:00
Philipp
04866195b4
Remove accept parameter for head/post again 2022-04-03 19:33:09 +02:00
Philipp
e299fc67c8
Introduce "accept_header" as specific argument to the http client 2022-04-02 21:16:53 +02:00
Philipp
73c3b21665
Move ACCEPT constants to own "enum" class 2022-04-02 20:26:11 +02:00
Michael
1fae0123ec Some more "accept" parameters are added 2022-03-29 06:24:20 +00:00
Michael
c5337c81e7 Improve contact search speed / assume octet-stream on missing content type 2022-01-27 04:05:11 +00:00
Michael
43b9e39c6a Lemmy support added 2022-01-22 15:24:51 +00:00
Michael
95f085b7ac API: The legacy API finally moved 2022-01-15 21:38:19 +00:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Michael Vogel
076b054a63 Fix for ParseUrl ('type' was already in use) 2021-12-09 01:20:31 +01:00
Michael
d6c97dbde2 Fix attachment handling 2021-12-08 13:32:20 +00:00
Michael
34260fc619 Improved page info detection 2021-12-04 19:54:33 +00:00
Philipp
409d909d0f
Restructure HTTPClient for new paradigm 2021-10-28 20:01:03 +02:00
Michael
840d9823d4 Log unexpected value 2021-09-22 03:25:01 +00:00
Michael
7ac76639c5 AVoid warning when fetching page data 2021-09-22 02:41:24 +00:00
Philipp
13a91e63aa
Rename DI::httpRequest() into DI::httpClient() 2021-08-25 21:54:54 +02:00
Philipp
505100bdd7
Rename HTTPRequestOptions to HTTPClientOptions 2021-08-25 21:45:15 +02:00
Philipp
0cafa871f1
Use HTTPRequestOptions constants for HTTPClient::get() 2021-08-25 21:31:30 +02:00
Philipp
65ca164487
A lot of Fixings 2021-08-20 21:35:14 +02:00
Philipp
26401e88b8
IHTTPResult::getContentType is now a string again 2021-08-20 19:58:42 +02:00
Philipp
803c1d71de
Fix IHTTPResult::getHeader()
- Now returns a string array, like expected
- Fix usages
- Fix dataset
2021-08-20 19:58:42 +02:00
Philipp
3c074ab315
HTTPRequest: Replace getInfo() with new parameter 'content_length' 2021-08-20 19:58:42 +02:00
Philipp
dee1899628
Fix IHTTPResult::getHeader/s()
- Split functionality "getHeader()" and "getHeaders()" analog to IMessageInterface::getHeader/s()
- Fix functionality at various places - Adapt CurlResultTest
2021-08-20 19:58:42 +02:00
Hypolite Petovan
412a0b3e1c Ensure JsonD data passed to ParseURL::parseParts is an array
- Address https://github.com/friendica/friendica/issues/10167#issuecomment-827894961
2021-05-10 21:32:03 -04:00
Michael
6841608164 Fix fatal error because of parameter type mismatch 2021-05-03 18:43:38 +00:00
Michael
8685e5ca32 Reworked media handling 2021-04-26 06:50:12 +00:00
Michael
f3b27dc789 Quickfix to avoid bad looking incoming tweets
Fixes https://github.com/friendica/friendica/pull/10148#issuecomment-821512658
2021-04-17 07:26:03 +00:00
Michael
2ed98bd040 Prevent false "photo" page detection 2021-04-15 21:13:20 +00:00
Michael
5a00902e11 Avoid HTML parsing of an empty body 2021-04-10 05:46:19 +00:00
Balázs Úr
befc2af504
Merge branch '2021.03-rc' into copyright-2021 2021-03-29 08:45:21 +02:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Michael
70d5802793 Avoid HTML in ParseUrl desriptions 2021-03-28 11:32:26 +00:00
Michael
bb0f3552e2 ParseUrl: Remove image when it doesn't fit the requirements 2021-03-28 06:47:58 +00:00
Michael
4a19348900 Fix: ParseUrl now fetches images again 2021-03-28 06:20:11 +00:00
Michael
c77f039f7a Fix Warning "key() expects parameter 1 to be array, string given" 2021-03-27 05:20:55 +00:00
Michael
fb663f0668 Avoid several notices in ParseUrl 2021-03-23 20:03:08 +00:00
Michael
4db6f11884 ParseUrl: Perform entitity decode afterwards 2021-03-22 06:47:04 +00:00
Michael
13ed585156 Display rhe provider and author of a shared post 2021-03-21 23:32:49 +00:00
Michael
2a68ad9b26 Check media links when fetching page data 2021-03-21 14:24:42 +00:00
Michael
f772e11cfa Avoid empty type 2021-03-18 08:04:52 +00:00
Michael
e3409c72e2 Add logos for person and organisation 2021-03-17 23:31:16 +00:00
Michael
558189e9d1 Reorganized functions 2021-03-17 22:29:12 +00:00