Commit graph

721 commits

Author SHA1 Message Date
pezcurrel
60b6ce1f78 Commented out of strip function an ongoing attempt at improving it that in some cases has some bad side effects 2022-12-29 13:37:49 +01:00
pezcurrel
b39eafdb80 Fixed getlangid missing $opts; fixed array_pop on inexistent $languages var 2022-12-29 12:49:38 +01:00
pezcurrel
64073fa12e Added classes for instances.php strip function 2022-12-29 12:41:03 +01:00
pezcurrel
b21b4f2ec2 Improved strip function 2022-12-29 12:40:35 +01:00
pezcurrel
1762e1cc7e Fixed wrong class for “moderated servers” list (“nobot” -> “nobott”) 2022-12-29 10:25:48 +01:00
pezcurrel
073cdb9ffb Assigned “.nobott” css class to server rules ordered list and moderated servers unordered list 2022-12-29 10:15:13 +01:00
pezcurrel
8af570ff9c Added “.idesc ul|ol.nobott” classes 2022-12-29 10:13:55 +01:00
pezcurrel
fd60944df4 Shortened the “wrong server thumbnail URL” message 2022-12-29 09:55:25 +01:00
pezcurrel
bf92c42a83 Shortened the “wrong server thumbnail URL” message 2022-12-29 09:54:55 +01:00
pezcurrel
f2b3642bcd Added “wrong server thumbnail URL” message 2022-12-29 09:46:40 +01:00
pezcurrel
3047472fda Added missing space character between software and version 2022-12-29 09:45:45 +01:00
pezcurrel
dd91bbde38 Added “unavmsg” class 2022-12-29 09:30:42 +01:00
pezcurrel
594447e2a5 Added a “message to admins” that gets shown when server thumbnail is unavailable, explaining how to try and fix it 2022-12-29 09:30:06 +01:00
pezcurrel
94bfec5f78 “$list” paramater of function “crawl” is now passed by reference; “$list” now gets unset in any case after it has been looped through; this hopefully will decrease a bit the amount of memory used by the script 2022-12-29 09:28:18 +01:00
pezcurrel
9e7868461a Added “Opted out of search engines indexing” string 2022-12-29 00:15:53 +01:00
pezcurrel
5bdff13983 Merge branch 'weblate' with new translated strings for deutsch and ukrainian 2022-12-28 23:54:28 +01:00
Pongrèbio
52a056352f
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (409 of 409 strings)

Translation: mastodon.help/Site
Translate-URL: https://hosted.weblate.org/projects/mastodon-help/site/uk/
2022-12-28 23:53:30 +01:00
Ігор Андреєв
b431738881
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (409 of 409 strings)

Translation: mastodon.help/Site
Translate-URL: https://hosted.weblate.org/projects/mastodon-help/site/uk/
2022-12-28 23:50:17 +01:00
nichu42
f05c09a9c8
Translated using Weblate (German)
Currently translated at 95.8% (392 of 409 strings)

Translation: mastodon.help/Site
Translate-URL: https://hosted.weblate.org/projects/mastodon-help/site/de/
2022-12-28 23:50:16 +01:00
pezcurrel
ec33912ff8 Restructured a bit the language management code 2022-12-28 23:47:23 +01:00
pezcurrel
db749d2e7d Consider the possibility that “our languages” have been locked 2022-12-28 19:17:05 +01:00
pezcurrel
b929d06302 Don’t INSERT an instance if it did not respond: it was useful before instance “deadness” was autonomously managed by peerscrawl.php 2022-12-28 18:59:09 +01:00
pezcurrel
e7eb303094 Updated comment describing what to do when a site language (translation) is added 2022-12-28 18:56:29 +01:00
pezcurrel
e8d588c0f2 Refactored language management 2022-12-28 18:34:57 +01:00
pezcurrel
01f9465625 Placeholder image to load by instances.php when server Thumb is “unavailable” 2022-12-28 18:33:26 +01:00
pezcurrel
c80290511a Placeholder image to load when AdmAvatar is “unavailable” 2022-12-28 18:32:54 +01:00
pezcurrel
a970bd81f6 Fixed AdmAccount showing logic, added string with message when it’s set to “OPTED OUT” special value 2022-12-28 17:11:17 +01:00
pezcurrel
2b37228a1c Fixed some flaws in detecting if Thumb and AdmAvatar are to be set to “unavailable”; fixed “noindex” logic, now it also explictly set AdmAccount to special “OPTED OUT” value when noindex=true 2022-12-28 17:09:25 +01:00
pezcurrel
870e3524ca Fixed $maxround not set to actual max round 2022-12-28 17:06:39 +01:00
pezcurrel
9d877986a5 When server thumb or admin avatar are set to “unavailable”, show an “unavailable” image 2022-12-28 07:02:17 +01:00
pezcurrel
6f5de9730e When server thumb or admin avatar are unavailable, set them to “unavailable” 2022-12-28 07:01:29 +01:00
pezcurrel
cf158ceb73 Now it makes a tar.xz with “run” directory contents and remove them before running commands 2022-12-28 05:25:56 +01:00
pezcurrel
242b728f43 Cope with the possibility that “Software” and-or “Version” are null 2022-12-27 23:33:31 +01:00
Pongrèbio
8883460cac
Translated using Weblate (Italian)
Currently translated at 100.0% (409 of 409 strings)

Translation: mastodon.help/Site
Translate-URL: https://hosted.weblate.org/projects/mastodon-help/site/it/
2022-12-27 23:17:26 +01:00
pezcurrel
2add5a8066 Added string “Moderated servers” 2022-12-27 23:14:04 +01:00
pezcurrel
e484298feb Added instance blocks (“moderated servers”) support 2022-12-27 23:03:31 +01:00
pezcurrel
ce66aa56e9 Added instance blocks support 2022-12-27 23:02:31 +01:00
pezcurrel
430c35e17a Little change in progress string 2022-12-27 23:01:39 +01:00
Pongrèbio
ff2eb79173
Translated using Weblate (Italian)
Currently translated at 100.0% (406 of 406 strings)

Translation: mastodon.help/Site
Translate-URL: https://hosted.weblate.org/projects/mastodon-help/site/it/
2022-12-27 18:17:49 +01:00
pezcurrel
0363280e7e Added “Server rules” string 2022-12-27 16:45:50 +01:00
pezcurrel
9ae4e81f1c Added “Server rules” showing 2022-12-27 16:45:02 +01:00
pezcurrel
540b5ccce6 Styled better some <ol> and <ul>, mainly to better show “Server rules” 2022-12-27 16:44:36 +01:00
pezcurrel
73469fa012 Default pool size back to 10 2022-12-27 15:39:46 +01:00
pezcurrel
c0b9c19469 Added keys check on instance info fetched from api v2 and v1; subordinated language checks to “$instaswered”; made get_toot_languages better cope with possible errors 2022-12-27 09:05:31 +01:00
pezcurrel
5ae8fc562d Cleaner; now returns error code too 2022-12-26 22:37:05 +01:00
pezcurrel
f7f1ac4cb2 logfile has .gii.log extension, handy to select only these files when run from crawler.php 2022-12-26 22:10:20 +01:00
pezcurrel
ea0118d445 cmd now prepends exec to command; pipes get closed 2022-12-26 22:09:18 +01:00
pezcurrel
463ef7cd37 Removed a dangling “}” which was breaking the script 2022-12-26 18:06:54 +01:00
pezcurrel
ff2d6c09a8 Removed “peers.all” file; made the script write to “peers files” only on exit (be it clean or by interruption) 2022-12-26 16:40:10 +01:00
pezcurrel
44b6456695 Made check on peers more strict, made the script abandon checking when a peers entry is malformed 2022-12-26 15:27:14 +01:00