Merge pull request 'Fix typos' (#10) from mdPlusPlus/sessioncommunities.online:codespell-1 into main

Reviewed-on: https://codeberg.org/gravel/sessioncommunities.online/pulls/10
dev
gravel 12 months ago
commit 53ad7da550
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -48,7 +48,7 @@ Recommended:
**Indentation**: Tabs (4-wide)
**Filename seperator**: Hyphen (`-`)
**Filename separator**: Hyphen (`-`)
### PHP

@ -42,7 +42,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for information about running the project
We require that content posted in Communities adheres to the Content Policy laid out in the [Session Terms of Service](https://getsession.org/terms-of-service). Additionally, we may consider Communities unsuitable for display if their content is in breach of copyright and/or encourages or instructs drug use. If Communities explicitly accept such content or fail to moderate such content, we may display these Communities only to users who have disabled JavaScript in their browser, or to none at all. For safety reasons, we may also hide Communities intended for testing. We appreciate contact with and the continued vigilance of server operators to prevent any issues from arising that would lead to us de-listing your Community.
We occassionally accept requests from server operators to de-list whole Community servers; this only applies in cases where we've previously listed them manually (read above about sources). If you feel our listing would be greatly detrimental to the users of your Communities, such as in cases where your Communities reveal sensitive information about your users, you may [contact us](#contact-us) to make such a request. Please note that Session Communities are not designed with private communication in mind and we reserve the right not to de-list your Communities in case they have been listed on one of our sources and/or in case you request to de-list only a subset of your Communities.
We occasionally accept requests from server operators to de-list whole Community servers; this only applies in cases where we've previously listed them manually (read above about sources). If you feel our listing would be greatly detrimental to the users of your Communities, such as in cases where your Communities reveal sensitive information about your users, you may [contact us](#contact-us) to make such a request. Please note that Session Communities are not designed with private communication in mind and we reserve the right not to de-list your Communities in case they have been listed on one of our sources and/or in case you request to de-list only a subset of your Communities.
## Contact us

@ -353,7 +353,7 @@ function createJoinLinkButtons() {
}
/**
* Hides rows of communities deemed to be superflous or unsuitable.
* Hides rows of communities deemed to be superfluous or unsuitable.
*/
function hideBadCommunities() {
let numberOfHiddenCommunities = 0;

@ -505,7 +505,7 @@
* @param CommunityServer $a First server to compare URLs.
* @param CommunityServer $b Second server to compare URLs.
* @return int A number less than, equal to, or greater than zero
* when the servers are in correct order, interchangable, or in reverse order,
* when the servers are in correct order, interchangeable, or in reverse order,
* respectively.
*/
static function compare_by_url($a, $b): int {
@ -528,7 +528,7 @@
* @param CommunityServer $a First server to compare public keys.
* @param CommunityServer $b Second server to compare public keys.
* @return int A number less than, equal to, or greater than zero
* when the servers are in correct order, interchangable, or in reverse order,
* when the servers are in correct order, interchangeable, or in reverse order,
* respectively.
*/
static function compare_by_pubkey($a, $b): int {
@ -547,7 +547,7 @@
* Absorbs extra info from another instance of the same server.
* @param CommunityServer $server
*
* @return True if successful, false in case of mistmatch.
* @return True if successful, false in case of mismatch.
*/
private function merge_from($server): bool {
// Merge room hint information.

@ -26,6 +26,6 @@
// max time for each connection (incl. transfer)
$CURL_TIMEOUT_MS = $FAST_FETCH_MODE ? 3000 : 9000;
// delay between retries in miliseconds
// delay between retries in milliseconds
$CURL_RETRY_SLEEP = 2000;
?>

@ -76,7 +76,7 @@
}
/**
* Returns a pair of optíons trigerring the given verbosity.
* Returns a pair of optíons triggering the given verbosity.
* @param int $verbosity Logging verbosity to set using flag.
* @return string[] Pair of short and long command-line verbosity flags.
*/
@ -102,8 +102,8 @@
}
/**
* Format current process runtime to milisecond precision.
* @return string Runtime ninutes, seconds, and miliseconds as string.
* Format current process runtime to millisecond precision.
* @return string Runtime ninutes, seconds, and milliseconds as string.
*/
function runtime_str(): string {
list($s, $ns) = hrtime_interval();

Loading…
Cancel
Save