Commit graph

269 commits

Author SHA1 Message Date
Hypolite Petovan
d05d2a348b Deprecate Network::unparseURL in favor of UriInterfact objects
- Added specific test for Probe::cleanURI
2021-12-03 17:39:31 -05:00
Hypolite Petovan
f409bd7034 Remove all-numeric usernames condition
- False negatives aren't recoverable
2021-12-02 08:03:38 -05:00
Hypolite Petovan
1321a52f15 Reformat Probe::getWebfingerArray 2021-12-02 08:02:26 -05:00
Hypolite Petovan
a47830990a Improve probe_detect hook
- Remove Twitter probe from core
- Allow hook function to better abort the probe_detect process
2021-11-23 17:46:20 -05:00
Michael
23b10cf2ae Some removed escapeTags calls 2021-11-05 19:59:18 +00:00
Philipp
409d909d0f
Restructure HTTPClient for new paradigm 2021-10-28 20:01:03 +02:00
Hypolite Petovan
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
Michael
f1e2ceb32c Issue 10747: Improved check for blocked domains 2021-10-02 10:25:50 +00:00
Michael
a91e3f5dbc Issue 10720: Use different path scheme for user avatars 2021-09-17 18:36:20 +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
2356221aba
Fixup HTTP headers for httpClient requests 2021-08-25 14:22:43 +02:00
Philipp
65ca164487
A lot of Fixings 2021-08-20 21:35:14 +02:00
Philipp
06371d29a6
Cleanup 2021-08-20 20:03:42 +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
Hypolite Petovan
6f13663c45 Return early if body is empty in Network\Probe::updateFromFeed
- Address https://github.com/friendica/friendica/issues/10473#issuecomment-894815271
2021-08-17 09:35:44 -04:00
Michael
bee04f86ee Matrix addresses can be entered in the profile 2021-08-09 01:39:09 +00:00
Michael
d6c25dc63c Handle profile page detection without a type 2021-08-05 11:37:04 +00:00
Michael
9f19adf8bb Use the general function ro create an avatar path 2021-08-02 22:28:42 +00:00
Hypolite Petovan
dfb043ce60 Add Exception for empty User::getOwnerDataById(0 return case in Protocol\ActivityPub\Transmitter::getProfile()
- Address https://github.com/friendica/friendica/issues/10473#issuecomment-882781552
- Add try-catch blocks to all references of Protocol\ActivityPub\Transmitter::getProfile()
2021-07-27 16:46:08 -04:00
Michael
01abea7c25 Don't probe non existing local contacts 2021-07-19 04:49:58 +00:00
Michael
aa6313dee6 Improved detection for a local contact 2021-07-19 04:15:57 +00:00
Michael
09aa496387 Some more places changed to the new contact avatar path format 2021-06-30 16:58:46 +00:00
Michael
fe07dc828b Fix noscrape publishing and pulling, added header 2021-06-17 11:23:32 +00:00
Michael
5a00902e11 Avoid HTML parsing of an empty body 2021-04-10 05:46:19 +00:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Hypolite Petovan
77b24a0b66
Quit earlier in ProbeURL->getFeedLink if body is empty 2021-02-23 16:06:34 -05:00
Adam Clark
8248f6942f Quit when message is empty, similar to #9681 2021-02-23 10:16:59 -08:00
Michael
fec5f2c217 Fix a notice when the path is empty 2020-12-31 07:54:56 +00:00
Hypolite Petovan
61aa4efa89 Account for missing contact in dfrn_request_post
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-743407998
2020-12-13 12:18:10 -05:00
Philipp
a6fc9cd32e
Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchAll() (deprecated since PHP 5.1.3) 2020-10-18 20:56:31 +02:00
Philipp
2e8ad098b9
Revert "HTTPRequest: Replace getInfo() with new parameter 'content_length'"
This reverts commit f3cd973c
2020-10-11 23:25:47 +02:00
Philipp
0449077126
Revert "Fix IHTTPResult::getHeader() - Now returns a string array, like expected - Fix usages - Fix dataset"
This reverts commit 80bd0a4d
2020-10-11 23:25:40 +02:00
Philipp
40349bfdc4
Revert "IHTTPResult::getContentType is now a string again"
This reverts commit 40b11442
2020-10-11 23:25:29 +02:00
Philipp
40b11442c2
IHTTPResult::getContentType is now a string again 2020-10-10 23:11:30 +02:00
Philipp
80bd0a4d5a
Fix IHTTPResult::getHeader()
- Now returns a string array, like expected
- Fix usages
- Fix dataset
2020-10-10 23:11:30 +02:00
Philipp
f3cd973cbe
HTTPRequest: Replace getInfo() with new parameter 'content_length' 2020-10-10 23:11:30 +02:00
Michael
5af713b336 Issue 9137: Fix "Incorrect integer value:" 2020-09-06 09:41:32 +00:00
Michael
cbf1e5c699 New field "manually-approve" for contact table 2020-09-02 03:02:50 +00:00
Michael
41c96f787d Use the AP adress for probing webfinger 2020-08-23 07:24:39 +00:00
Michael
4285f4643f Fix Test 2020-08-22 15:19:34 +00:00
Michael
eb95314aaa Avoid locally probing last item via network 2020-08-19 04:45:31 +00:00
Michael
d9fc0ae0ea Using a constant value for the default avatar 2020-08-18 20:30:24 +00:00
Michael
76bcf27130 "localProbe" is used only locally 2020-08-18 19:48:14 +00:00
Michael
5aba1df497 Use "User::getIdForURL" 2020-08-18 19:45:01 +00:00
Michael
f1a8db4e76 Use the owner data to collect all data 2020-08-18 17:30:48 +00:00
Michael
c3bfa9f1c1 Don't probe on local profiles via network 2020-08-18 16:42:01 +00:00