Commit graph

150 commits

Author SHA1 Message Date
Michael
eab4d6cbb4 Simplified Nomad detection 2023-03-18 12:27:49 +00:00
Michael
9c1516feb2 Takahē and Wildebeest added, Nomad detection improved 2023-03-18 11:43:29 +00:00
Michael
a3cb43805c Fix fatal error because of an invalid url 2023-02-14 21:19:47 +00:00
Hypolite Petovan
301fa681c5 Ward against potentially missing "platform" array key in Model\GServer::fetchSiteinfo
- Address https://github.com/friendica/friendica/issues/12488#issuecomment-1411635902
2023-02-01 08:35:33 -05:00
Michael
edf3e9c4b6 Improved block check for redirects 2023-01-22 12:33:38 +00:00
Roland Häder
27969e8ca6
Continued:
- moved if() block to suggested position by MrPetovan, for me I want to have all
  conditions checked at the start of the method, e.g. no unwanted null
  references or (in this case) if the URL is blacklisted
- normalized URLs are without SSL, means http://host/path/file.ext so they exist
  only once for contacts and servers (aka. instances)
- documented returned type `void`
2023-01-21 01:07:14 +01:00
Roland Häder
a0704db43a
Continued:
- some trolls managed to flood gserver with useless URLs. They can be blocked
  by domain blocking them, but still it floods gserver table with dead entries
- this hack tries to change that so they won't enter gserver at all. Let's hope
  these trolls as `activitypub-trolls.cf` learn a lesson (and get adults soon)

Signed-off-by: Roland Häder <roland@mxchange.org>
2023-01-20 01:50:55 +01:00
Michael
356a2a9a5a News "blocked" field on the gserver table 2023-01-17 17:25:19 +00:00
Hypolite Petovan
1f3c07c06f Drop UpdateGServer worker task if domain is blocked 2023-01-04 14:41:09 -05:00
Hypolite Petovan
a574146f04 Add UriInterface-enabled cleanUri method in Model\GServer
- Tests!
2023-01-04 14:41:08 -05:00
Michael
f1bcf1ef66 Set the server status directly after transmission 2023-01-01 17:34:05 +00:00
Michael
06403f1546 License updated 2023-01-01 07:52:28 +00:00
Michael
e21db0fe6d The inbox-status can now be archived for a whole server 2022-12-31 23:42:00 +00:00
Michael
8e397b5849 Changes after review 2022-12-31 16:20:18 +00:00
Michael
f022a49f9e New "Defunct" check 2022-12-31 16:01:40 +00:00
Michael
259b99e6e9 Bulk delivery added for all protocols 2022-12-31 12:19:34 +00:00
Philipp
1ed67fba3d
Replace addon "last" config entries with key-value entries 2022-12-29 21:53:57 +01:00
Michael
998b05095b A server is only reachable when the network can be detected 2022-12-23 06:48:53 +00:00
Michael
d39f4014e4 Fix delivery problems with "reachable" test 2022-12-19 19:41:04 +00:00
Michael Vogel
8f22b4f33d
Update src/Model/GServer.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-12-19 15:22:21 +01:00
Michael
feb74b4d9a Don't perform a delivery to failing servers 2022-12-19 09:30:56 +00:00
Hypolite Petovan
c60464a4be Catch exceptions in Model\Gserver::cleanURL
- Address https://github.com/friendica/friendica/issues/11992#issuecomment-1354393419
2022-12-16 17:39:40 -05:00
Michael
8b41d62a88 API: Speed improvements 2022-11-29 18:45:30 +00:00
Hypolite Petovan
a5f601718f Add a default value for $data['version'] in Model\GServer
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1327320541
2022-11-26 17:28:55 -05:00
Michael
fa5e7585a3 Fix "Argument #1 ($parts) must be of type array, bool given" 2022-11-25 06:08:56 +00:00
Roland Häder
5306bb3e31
Changes:
- added more missing type-hints (checked them in body of the method)
- reformatted code a little (code-style)
- moved '/.well-known/host-meta' to constant Probe::HOST_META
2022-10-25 20:25:13 +02:00
Michael
018858934b The priority is now a class constant 2022-10-17 05:49:55 +00:00
Hypolite Petovan
a10f55bb85
Merge pull request #11979 from annando/issue-11853
Notices
2022-10-09 17:45:33 -04:00
Michael
3a840aa22d Some more warnings and erors are fixed 2022-08-28 19:27:21 +00:00
Michael
3052ae71b7 Avoid warnings 2022-08-28 09:12:36 +00:00
Michael
ceb88c10e6 Warnings/Errors reduced - improved relay processing 2022-08-27 08:08:58 +00:00
Michael
86105635ca Improved message handling / new activity relay handling 2022-07-27 17:39:00 +00:00
Michael
af8e059990 Renamed platform definition file 2022-07-18 03:48:19 +00:00
Michael
d52f52f45f Somed added documentation 2022-07-17 05:42:44 +00:00
Michael
8b7cb5d9ef Merge remote-tracking branch 'upstream/develop' into server-detection 2022-07-16 12:44:21 +00:00
Michael
896fd3fc91 Use the redirect value 2022-07-14 05:39:25 +00:00
Philipp
d74e57ef2c
include suggested changes 2022-07-13 00:23:12 +02:00
Philipp
a910fd8864
Split DBStructure & View to avoid DB-calls and dependencies for basic operations
- new "Definition" classes vor DB and Views
- new "Writer" classes to create SQL definitions for DB and Views
- DBStructure & View are responsible to execute DB-querys
2022-07-12 23:40:31 +02:00
Michael
dad05f1c76 Only fetch the first word for the platform 2022-07-10 13:52:38 +00:00
Michael
85c7bacb00 Improved server detection 2022-07-10 13:01:47 +00:00
Michael
cc75eb5d18 Improved server detection 2022-07-05 05:04:05 +00:00
Hypolite Petovan
aa133b5437 Add explicit gserver.site_name string truncate in Model\GServer
- Avoids "Data too long for column 'site_name'" database errors
2022-06-25 06:25:48 -04:00
Hypolite Petovan
636b84b41c Update return value type-hint of GServer::getProtocol
- Address https://github.com/friendica/friendica/issues/11630#issuecomment-1164880874
2022-06-25 05:06:22 -04:00
Roland Häder
fd8f4269ff
Reformatted code 2022-06-23 17:30:17 +02:00
Roland Häder
e96a548286
Changes:
- dumped default value for $input
- added unknown 'platform' which prevents an "Undefined index: platform in
  /var/www/.../src/Model/GServer.php on line 940" error
2022-06-20 18:56:22 +02:00
Roland Häder
c0d7f8944d
Some calls saved 2022-06-19 11:26:10 +02:00
Roland Häder
8ba3f13fae
Changes:
- added more type-hints
- added missing documentation
2022-06-18 17:09:46 +02:00
Roland Häder
33768ea1c6 Some fixes:
- $gsid's default value cannot sadly be 0, it now must be null to allow some
  code work
- added some more type-hints
- documented a bit more
2022-06-17 17:18:31 +02:00
Michael
30e5ef928a Avoid wrong server type detection / Owncast added 2022-04-12 05:34:34 +00:00
Michael
62367923e0 Fix several notices 2022-04-11 18:57:30 +00:00