]> git.mxchange.org Git - friendica.git/log
friendica.git
3 years agoUpdate src/Network/IHTTPClient.php
Philipp [Wed, 25 Aug 2021 15:02:42 +0000 (17:02 +0200)]
Update src/Network/IHTTPClient.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
3 years agoUpdate src/Network/IHTTPClient.php
Philipp [Wed, 25 Aug 2021 15:02:34 +0000 (17:02 +0200)]
Update src/Network/IHTTPClient.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
3 years agoAdapt description for "accept_content"
Philipp [Wed, 25 Aug 2021 12:28:59 +0000 (14:28 +0200)]
Adapt description for "accept_content"

3 years agoAdd suggestions
Philipp [Wed, 25 Aug 2021 11:59:37 +0000 (13:59 +0200)]
Add suggestions

3 years agoAdd logpoint
Philipp [Wed, 25 Aug 2021 11:58:29 +0000 (13:58 +0200)]
Add logpoint

3 years agoFix headers (string to array) and make sure the signature doesn't change
Philipp [Wed, 25 Aug 2021 11:45:00 +0000 (13:45 +0200)]
Fix headers (string to array) and make sure the signature doesn't change

3 years agoAdd Test for HTTPSignature::createSig()
Philipp [Wed, 25 Aug 2021 11:39:40 +0000 (13:39 +0200)]
Add Test for HTTPSignature::createSig()

3 years agoFix HTTPClient
Philipp [Tue, 24 Aug 2021 22:40:15 +0000 (00:40 +0200)]
Fix HTTPClient

3 years agoExtend test capability for HTTP Requests
Philipp [Tue, 24 Aug 2021 22:13:50 +0000 (00:13 +0200)]
Extend test capability for HTTP Requests

3 years agoFix curResult::getHeader() in GServer.php
Philipp [Tue, 24 Aug 2021 21:26:33 +0000 (23:26 +0200)]
Fix curResult::getHeader() in GServer.php

3 years agoFixup HTTP headers for httpClient requests
Philipp [Tue, 24 Aug 2021 12:17:42 +0000 (14:17 +0200)]
Fixup HTTP headers for httpClient requests

3 years agoIntroduce DiceTestTrait for partial mocking DI:: calls
Philipp [Tue, 24 Aug 2021 11:19:17 +0000 (13:19 +0200)]
Introduce DiceTestTrait for partial mocking DI:: calls

3 years agoFixing https://github.com/friendica/friendica/issues/10473#issuecomment-903993836
Philipp [Mon, 23 Aug 2021 18:09:37 +0000 (20:09 +0200)]
Fixing https://github.com/friendica/friendica/issues/10473#issuecomment-903993836

3 years agoAdapt tests
Philipp [Mon, 23 Aug 2021 13:47:41 +0000 (15:47 +0200)]
Adapt tests

3 years agoUse mattwright/urlresolver for HTTPClient::finalUrl()
Philipp [Mon, 23 Aug 2021 12:28:25 +0000 (14:28 +0200)]
Use mattwright/urlresolver for HTTPClient::finalUrl()

3 years agoUse Guzzle for HTTPClient::post()
Philipp [Mon, 23 Aug 2021 12:02:52 +0000 (14:02 +0200)]
Use Guzzle for HTTPClient::post()

3 years agoRefactor HTTPClient::get() / ::head()
Philipp [Mon, 23 Aug 2021 11:44:46 +0000 (13:44 +0200)]
Refactor HTTPClient::get() / ::head()

3 years agoCreate HTTPClientFactory and introduce ImageTest
Philipp [Sun, 22 Aug 2021 22:14:18 +0000 (00:14 +0200)]
Create HTTPClientFactory and introduce ImageTest

3 years agoMerge pull request #10631 from MrPetovan/bug/10625-guzzleresponse-body-stream
Michael Vogel [Tue, 24 Aug 2021 16:56:00 +0000 (18:56 +0200)]
Merge pull request #10631 from MrPetovan/bug/10625-guzzleresponse-body-stream

Allow a GuzzleResponse body to be queried more than once

3 years agoAdd probe support to `@user@domain.tld` search string format
Hypolite Petovan [Tue, 24 Aug 2021 15:32:27 +0000 (11:32 -0400)]
Add probe support to `@user@domain.tld` search string format

3 years agoAllow a GuzzleResponse body to be queried more than once
Hypolite Petovan [Tue, 24 Aug 2021 15:30:11 +0000 (11:30 -0400)]
Allow a GuzzleResponse body to be queried more than once

- Using `StreamInterface->getContents` left the stream index at the end of the stream, which made every subsequent call to `getBody()` return empty string
- Using `StreamInterface->__toString()` magic method correctly seek the stream to the start before reading

3 years agoMerge pull request #10630 from annando/cleared-enotify
Hypolite Petovan [Tue, 24 Aug 2021 14:25:06 +0000 (10:25 -0400)]
Merge pull request #10630 from annando/cleared-enotify

Unused parts of the old notification system are removed

3 years agoMerge pull request #10628 from MrPetovan/bug/fatal-errors
Michael Vogel [Tue, 24 Aug 2021 12:13:32 +0000 (14:13 +0200)]
Merge pull request #10628 from MrPetovan/bug/fatal-errors

Set profile fields for system user in Model\User::getOwnerDataById

3 years agoRemove Profile::load from Module\HCard
Hypolite Petovan [Tue, 24 Aug 2021 10:24:06 +0000 (06:24 -0400)]
Remove Profile::load from Module\HCard

- Renamed and re-scoped Profile::sidebar to getVcardHtml

3 years agoRaise an Exception when Profile::load is profided the system user nickname
Hypolite Petovan [Tue, 24 Aug 2021 09:54:15 +0000 (05:54 -0400)]
Raise an Exception when Profile::load is profided the system user nickname

3 years agoSet profile fields for system user in Model\User::getOwnerDataById
Hypolite Petovan [Mon, 23 Aug 2021 18:07:32 +0000 (14:07 -0400)]
Set profile fields for system user in Model\User::getOwnerDataById

- Address https://github.com/friendica/friendica/issues/10473#issuecomment-903676606
- This is required when Model\Profile::load is called for the system user for example

3 years agoUpdated "messages.po"
Michael [Tue, 24 Aug 2021 08:58:23 +0000 (08:58 +0000)]
Updated "messages.po"

3 years agoUnused parts of the old notification system are removed
Michael [Tue, 24 Aug 2021 08:53:15 +0000 (08:53 +0000)]
Unused parts of the old notification system are removed

3 years agoMerge pull request #10627 from annando/like-announce
Hypolite Petovan [Mon, 23 Aug 2021 18:12:57 +0000 (14:12 -0400)]
Merge pull request #10627 from annando/like-announce

Reliably display "like" and "share" notifications

3 years agoReliably diasplay "like" and "share" notifications
Michael [Mon, 23 Aug 2021 15:07:14 +0000 (15:07 +0000)]
Reliably diasplay "like" and "share" notifications

3 years agoMerge pull request #10622 from tobiasd/20210823-de
Michael Vogel [Mon, 23 Aug 2021 06:06:22 +0000 (08:06 +0200)]
Merge pull request #10622 from tobiasd/20210823-de

DE translation updates

3 years agoDE translation updats
Tobias Diekershoff [Mon, 23 Aug 2021 05:41:51 +0000 (07:41 +0200)]
DE translation updats

3 years agoMerge pull request #10619 from nupplaphil/task/guzzlehttp
Hypolite Petovan [Sun, 22 Aug 2021 22:11:30 +0000 (18:11 -0400)]
Merge pull request #10619 from nupplaphil/task/guzzlehttp

PSR-7 Part 1: Use Guzzle PSR-7 library for HTTPRequest->get()

3 years agoInitialize $curlOptions[CURLOPT_HTTPHEADER] outside of the checks
Philipp [Sun, 22 Aug 2021 20:49:55 +0000 (22:49 +0200)]
Initialize $curlOptions[CURLOPT_HTTPHEADER] outside of the checks

3 years agoRemove legacy header-parsing for guzzle
Philipp [Sun, 22 Aug 2021 20:43:28 +0000 (22:43 +0200)]
Remove legacy header-parsing for guzzle

3 years agoMerge pull request #10620 from annando/new-notifications
Hypolite Petovan [Sun, 22 Aug 2021 18:52:11 +0000 (14:52 -0400)]
Merge pull request #10620 from annando/new-notifications

The desktop notifications have been reworked

3 years agoAdded "follow" subscription message
Michael [Sun, 22 Aug 2021 08:27:56 +0000 (08:27 +0000)]
Added "follow" subscription message

3 years agoAdded handling another situation
Michael [Sun, 22 Aug 2021 03:58:50 +0000 (03:58 +0000)]
Added handling another situation

3 years agoFetch the user's post if present
Michael [Sat, 21 Aug 2021 21:40:47 +0000 (21:40 +0000)]
Fetch the user's post if present

3 years agoThe desktop notifications have been reworked
Michael [Sat, 21 Aug 2021 20:35:04 +0000 (20:35 +0000)]
The desktop notifications have been reworked

3 years agoremove unused $redirect parameter
Philipp [Fri, 20 Aug 2021 20:30:54 +0000 (22:30 +0200)]
remove unused $redirect parameter

3 years agomake CS happy :)
Philipp [Fri, 20 Aug 2021 20:11:36 +0000 (22:11 +0200)]
make CS happy :)

3 years agoFix getHeader()
Philipp [Fri, 20 Aug 2021 20:00:28 +0000 (22:00 +0200)]
Fix getHeader()

3 years agoA lot of Fixings
Philipp [Fri, 20 Aug 2021 18:05:41 +0000 (20:05 +0200)]
A lot of Fixings

3 years agoCleanup
Philipp [Fri, 20 Aug 2021 18:03:42 +0000 (20:03 +0200)]
Cleanup

3 years agoUpdate src/Network/GuzzleResponse.php
Philipp [Fri, 20 Aug 2021 17:48:23 +0000 (19:48 +0200)]
Update src/Network/GuzzleResponse.php

3 years agoRevert "Use last entry for Content-Type
Philipp [Fri, 20 Aug 2021 17:48:22 +0000 (19:48 +0200)]
Revert "Use last entry for Content-Type

3 years agoRemove unnecessary exception message (avoid log flooding)
Philipp [Fri, 20 Aug 2021 17:48:21 +0000 (19:48 +0200)]
Remove unnecessary exception message (avoid log flooding)

3 years agoFix redirect logging
Philipp [Fri, 20 Aug 2021 17:48:21 +0000 (19:48 +0200)]
Fix redirect logging

3 years agoIHTTPResult::getContentType is now a string again
Philipp [Fri, 20 Aug 2021 17:48:21 +0000 (19:48 +0200)]
IHTTPResult::getContentType is now a string again

3 years agoFix Content-Type for `CurlResult` class
Philipp [Fri, 20 Aug 2021 17:48:20 +0000 (19:48 +0200)]
Fix Content-Type for `CurlResult` class

3 years agoFix IHTTPResult::getHeader()
Philipp [Fri, 20 Aug 2021 17:48:20 +0000 (19:48 +0200)]
Fix IHTTPResult::getHeader()
- Now returns a string array, like expected
- Fix usages
- Fix dataset

3 years agoHTTPRequest: Replace getInfo() with new parameter 'content_length'
Philipp [Fri, 20 Aug 2021 17:48:20 +0000 (19:48 +0200)]
HTTPRequest: Replace getInfo() with new parameter 'content_length'

3 years agoUse CurlResult for failed HTTPRequests (legacy usage)
Philipp [Fri, 20 Aug 2021 17:48:16 +0000 (19:48 +0200)]
Use CurlResult for failed HTTPRequests (legacy usage)

3 years agoFix IHTTPResult::getHeader/s()
Philipp [Fri, 20 Aug 2021 17:48:14 +0000 (19:48 +0200)]
Fix IHTTPResult::getHeader/s()
- Split functionality "getHeader()" and "getHeaders()" analog to IMessageInterface::getHeader/s()
- Fix functionality at various places - Adapt CurlResultTest

3 years agoUse Guzzle for HTTPRequest and Result
Philipp [Fri, 20 Aug 2021 17:48:14 +0000 (19:48 +0200)]
Use Guzzle for HTTPRequest and Result

3 years agoReplace IHTTPResult for CurlResult usages
Philipp [Fri, 20 Aug 2021 17:48:14 +0000 (19:48 +0200)]
Replace IHTTPResult for CurlResult usages

3 years agoIntroduce IHTTPResult Interface as abstraction for CurlResult
Philipp [Fri, 20 Aug 2021 17:48:13 +0000 (19:48 +0200)]
Introduce IHTTPResult Interface as abstraction for CurlResult

3 years agoAdd guzzlehttp/guzzle as composer requirement
Philipp [Fri, 20 Aug 2021 17:48:13 +0000 (19:48 +0200)]
Add guzzlehttp/guzzle as composer requirement

3 years agoMerge pull request #10309 from fabrixxm/feature/advanced-logsview
Hypolite Petovan [Fri, 20 Aug 2021 09:24:07 +0000 (05:24 -0400)]
Merge pull request #10309 from fabrixxm/feature/advanced-logsview

Display structured logs in admin

3 years agoFix code standard
fabrixxm [Fri, 20 Aug 2021 09:09:35 +0000 (11:09 +0200)]
Fix code standard

3 years agoFix review points
fabrixxm [Fri, 20 Aug 2021 07:47:53 +0000 (09:47 +0200)]
Fix review points

- Fix headers hierarchy
- Improve accessibility:
  - set mouse pointer
- make rows focusable
- open on key press
- add tooltip with "title"
- add role and aria attributes
- Rename `ParsedLog` to `ParsedLogLine`
- Add docs to `ReversedFileReader`'s implementation of `Iterator`'s methods
- Add docs to `ParsedLogIterator`'s implementation of `Iterator`'s methods
- Remove unnecessary comment
- Add more test for parsing log lines and fix some edge cases
- Fix function name in snake-case to camelCase
- Remove `DIRECTORY_SEPARATOR`

3 years agoMerge pull request #10618 from MrPetovan/task/10603-ap-string-mentions
Michael Vogel [Fri, 20 Aug 2021 08:16:30 +0000 (10:16 +0200)]
Merge pull request #10618 from MrPetovan/task/10603-ap-string-mentions

Escape url tags before attempting to add missing mention links in Protocol\ActivityPub\Processor

3 years agoAdd test for issue #10617
Hypolite Petovan [Fri, 20 Aug 2021 07:45:43 +0000 (03:45 -0400)]
Add test for issue #10617

3 years agoEscape url tags before attempting to add missing mention links in Protocol\ActivityPu...
Hypolite Petovan [Fri, 20 Aug 2021 07:40:23 +0000 (03:40 -0400)]
Escape url tags before attempting to add missing mention links in Protocol\ActivityPub\Processor

- Mastodon uses @-sign in profile URLs which wrongly triggered the mention link add in existing mentions links

3 years agoMerge pull request #10616 from annando/notification-message
Hypolite Petovan [Thu, 19 Aug 2021 23:20:46 +0000 (19:20 -0400)]
Merge pull request #10616 from annando/notification-message

Meaningful notification message

3 years agoAdded "causer" and "notification" for the "ping" mechanism
Michael [Thu, 19 Aug 2021 14:57:35 +0000 (14:57 +0000)]
Added "causer" and "notification" for the "ping" mechanism

3 years agoMeaningful notification message
Michael [Thu, 19 Aug 2021 13:58:55 +0000 (13:58 +0000)]
Meaningful notification message

3 years agoFix `ParsedLogIteratorTest::setUp()`
fabrixxm [Thu, 19 Aug 2021 13:26:26 +0000 (15:26 +0200)]
Fix `ParsedLogIteratorTest::setUp()`

3 years agoFix code standard
fabrixxm [Thu, 19 Aug 2021 13:20:25 +0000 (15:20 +0200)]
Fix code standard

3 years agoAdd tests for ParsedLogIterator
fabrixxm [Thu, 19 Aug 2021 12:28:29 +0000 (14:28 +0200)]
Add tests for ParsedLogIterator

3 years agoAdd DI to ParsedLogIterator, replace constructors with fluent api
fabrixxm [Thu, 19 Aug 2021 11:03:45 +0000 (13:03 +0200)]
Add DI to ParsedLogIterator, replace constructors with fluent api

3 years agoAdd tests for ParsedLog and fix parsing
fabrixxm [Tue, 20 Jul 2021 16:03:20 +0000 (18:03 +0200)]
Add tests for ParsedLog and fix parsing

3 years agologs view: update frio template
fabrixxm [Tue, 25 May 2021 12:10:36 +0000 (14:10 +0200)]
logs view: update frio template

add search and filter columns support.
add "prev/next" buttons to details popup

3 years agoFix code formatting
fabrixxm [Mon, 24 May 2021 20:05:02 +0000 (22:05 +0200)]
Fix code formatting

3 years agoAdd search and filter to log view
fabrixxm [Mon, 24 May 2021 19:47:10 +0000 (21:47 +0200)]
Add search and filter to log view

3 years agoAdvanced log view: Frio version
fabrixxm [Sat, 27 Mar 2021 17:36:55 +0000 (18:36 +0100)]
Advanced log view: Frio version

Show log event details in a modal dialog

3 years agoDisplay structured logs in admin
fabrixxm [Sat, 27 Mar 2021 17:28:09 +0000 (18:28 +0100)]
Display structured logs in admin

Tries to parse log lines and to display info in a table.
Additional JSON data is parsed and displayed clicking on a row.

File reading and line parsing is handled in iterators, to avoid to keep
too much data in memory.
Search and filter should be trivial to add.
Log file is read backward to display log events newest first.
A "tail" functionality should be easy to implement.

3 years agoMerge pull request #10615 from tobiasd/20210819-de
Michael Vogel [Thu, 19 Aug 2021 06:33:56 +0000 (08:33 +0200)]
Merge pull request #10615 from tobiasd/20210819-de

DE translation updats

3 years agoDE translation updats
Tobias Diekershoff [Thu, 19 Aug 2021 05:04:36 +0000 (07:04 +0200)]
DE translation updats

3 years agoMerge pull request #10604 from MrPetovan/task/10603-ap-string-mentions
Michael Vogel [Wed, 18 Aug 2021 21:45:24 +0000 (23:45 +0200)]
Merge pull request #10604 from MrPetovan/task/10603-ap-string-mentions

ActivityPub: Add support for non-link mentions

3 years agoAdd tests for a couple of static methods of Protocol\ActivityPub\Processor
Hypolite Petovan [Tue, 17 Aug 2021 12:54:16 +0000 (08:54 -0400)]
Add tests for a couple of static methods of Protocol\ActivityPub\Processor

3 years agoActivityPub: Add support for non-link mentions
Hypolite Petovan [Mon, 16 Aug 2021 02:53:42 +0000 (22:53 -0400)]
ActivityPub: Add support for non-link mentions

- This enables implicit mention removal even if the remote server doesn't add links to mentions in the message body.
- This also enable interactive mentions in the message body when implicit mentions are disabled.

3 years agoMerge pull request #10613 from annando/improved-payload
Hypolite Petovan [Wed, 18 Aug 2021 17:45:18 +0000 (13:45 -0400)]
Merge pull request #10613 from annando/improved-payload

The push api payload content is improved

3 years agoUpdate src/Worker/PushSubscription.php
Michael Vogel [Wed, 18 Aug 2021 16:54:03 +0000 (18:54 +0200)]
Update src/Worker/PushSubscription.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
3 years agoClarify the upcoming functionality
Michael [Wed, 18 Aug 2021 10:27:45 +0000 (10:27 +0000)]
Clarify the upcoming functionality

3 years agoMerge pull request #10611 from MrPetovan/task/feed-debug-contact
Michael Vogel [Wed, 18 Aug 2021 08:05:38 +0000 (10:05 +0200)]
Merge pull request #10611 from MrPetovan/task/feed-debug-contact

Allow contact creation in Module\Debug\Feed

3 years agoMerge pull request #10614 from tobiasd/20210818-de
Michael Vogel [Wed, 18 Aug 2021 05:55:32 +0000 (07:55 +0200)]
Merge pull request #10614 from tobiasd/20210818-de

DE translation update

3 years agoMerge pull request #10608 from MrPetovan/bug/remove-remaining-app-argv
Michael Vogel [Wed, 18 Aug 2021 05:54:21 +0000 (07:54 +0200)]
Merge pull request #10608 from MrPetovan/bug/remove-remaining-app-argv

Remove remaining mentions of $a->argc/argv

3 years agoDE translation update
Tobias Diekershoff [Wed, 18 Aug 2021 05:49:27 +0000 (07:49 +0200)]
DE translation update

3 years agoMerge remote-tracking branch 'upstream/develop' into improved-payload
Michael [Tue, 17 Aug 2021 23:00:00 +0000 (23:00 +0000)]
Merge remote-tracking branch 'upstream/develop' into improved-payload

3 years agoUpdated messages.po
Michael [Tue, 17 Aug 2021 22:58:00 +0000 (22:58 +0000)]
Updated messages.po

3 years agoThe push api payload content is improved
Michael [Tue, 17 Aug 2021 22:53:52 +0000 (22:53 +0000)]
The push api payload content is improved

3 years agoMerge pull request #10612 from MrPetovan/bug/fatal-errors
Michael Vogel [Tue, 17 Aug 2021 15:34:27 +0000 (17:34 +0200)]
Merge pull request #10612 from MrPetovan/bug/fatal-errors

Various Fatal error fixes

3 years agoAbort early if owner isn't found in Module\RemoteFollow
Hypolite Petovan [Tue, 17 Aug 2021 13:38:35 +0000 (09:38 -0400)]
Abort early if owner isn't found in Module\RemoteFollow

- Address https://github.com/friendica/friendica/issues/10473#issuecomment-899099987

3 years agoReturn early if body is empty in Network\Probe::updateFromFeed
Hypolite Petovan [Tue, 17 Aug 2021 13:35:44 +0000 (09:35 -0400)]
Return early if body is empty in Network\Probe::updateFromFeed

- Address https://github.com/friendica/friendica/issues/10473#issuecomment-894815271

3 years agoAbort early if owner isn't found in mod/photos
Hypolite Petovan [Tue, 17 Aug 2021 13:06:28 +0000 (09:06 -0400)]
Abort early if owner isn't found in mod/photos

- Address https://github.com/friendica/friendica/issues/10473#issuecomment-894779649

3 years agoRemove remaining mentions of $a->argc/argv
Hypolite Petovan [Mon, 16 Aug 2021 09:47:29 +0000 (05:47 -0400)]
Remove remaining mentions of $a->argc/argv

- This was breaking the layout of specific pages in Frio

3 years agoAllow contact creation in Module\Debug\Feed
Hypolite Petovan [Tue, 17 Aug 2021 12:20:58 +0000 (08:20 -0400)]
Allow contact creation in Module\Debug\Feed

- This module only allowed existing contact feeeds to be debugged

3 years agoMerge pull request #10609 from tobiasd/20210816-10514
Hypolite Petovan [Tue, 17 Aug 2021 11:58:17 +0000 (07:58 -0400)]
Merge pull request #10609 from tobiasd/20210816-10514

Issue 10514: add TLS check to the installer