Skip to content

Commit

Permalink
Merge branch 'develop' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
MomentQYC authored Oct 18, 2024
2 parents d55fed8 + 9512b84 commit 1ee22e2
Show file tree
Hide file tree
Showing 344 changed files with 38,445 additions and 7,643 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: docker buildx inspect

- name: Install Cosign
uses: sigstore/cosign-installer@v3.5.0
uses: sigstore/cosign-installer@v3.7.0

- name: Checkout repository
uses: actions/checkout@v4
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/fix_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,13 @@ jobs:
with:
install-project: "false"

- name: Import order (isort)
- name: Run ruff check
continue-on-error: true
run: poetry run isort .
run: poetry run ruff check --fix .

- name: Code style (black)
- name: Run ruff format
continue-on-error: true
run: poetry run black .

- name: Semantic checks (ruff)
continue-on-error: true
run: poetry run ruff --fix .
run: poetry run ruff format --quiet .

- run: cargo clippy --all-features --fix -- -D warnings
continue-on-error: true
Expand All @@ -49,4 +45,4 @@ jobs:

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Attempt to fix linting"
commit_message: "Attempt to fix linting"
16 changes: 6 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,11 @@ jobs:
with:
install-project: "false"

- name: Import order (isort)
run: poetry run isort --check --diff .
- name: Run ruff check
run: poetry run ruff check --output-format=github .

- name: Code style (black)
run: poetry run black --check --diff .

- name: Semantic checks (ruff)
# --quiet suppresses the update check.
run: poetry run ruff check --quiet .
- name: Run ruff format
run: poetry run ruff format --check .

lint-mypy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -305,7 +301,7 @@ jobs:
- lint-readme
runs-on: ubuntu-latest
steps:
- uses: matrix-org/done-action@v2
- uses: matrix-org/done-action@v3
with:
needs: ${{ toJSON(needs) }}

Expand Down Expand Up @@ -737,7 +733,7 @@ jobs:
- linting-done
runs-on: ubuntu-latest
steps:
- uses: matrix-org/done-action@v2
- uses: matrix-org/done-action@v3
with:
needs: ${{ toJSON(needs) }}

Expand Down
545 changes: 545 additions & 0 deletions CHANGES.md

Large diffs are not rendered by default.

37 changes: 19 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. image:: https://github.com/element-hq/product/assets/87339233/7abf477a-5277-47f3-be44-ea44917d8ed7
.. image:: ./docs/element_logo_white_bg.svg
:height: 60px

**Element Synapse - Matrix homeserver implementation**
Expand Down Expand Up @@ -158,7 +158,7 @@ it:

We **strongly** recommend using a CAPTCHA, particularly if your homeserver is exposed to
the public internet. Without it, anyone can freely register accounts on your homeserver.
This can be exploited by attackers to create spambots targetting the rest of the Matrix
This can be exploited by attackers to create spambots targeting the rest of the Matrix
federation.

Your new user name will be formed partly from the ``server_name``, and partly
Expand Down
1 change: 0 additions & 1 deletion changelog.d/17318.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17320.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17337.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17342.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17356.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17362.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17363.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17365.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17367.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17379.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17381.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17390.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17392.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17393.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17399.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17400.feature

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/17627.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify when the `user_may_invite` and `user_may_send_3pid_invite` module callbacks are called.
1 change: 1 addition & 0 deletions changelog.d/17708.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added the `display_name_claim` option to the JWT configuration. This option allows specifying the claim key that contains the user's display name in the JWT payload.
1 change: 1 addition & 0 deletions changelog.d/17718.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Slight optimization when fetching state/events for Sliding Sync.
1 change: 1 addition & 0 deletions changelog.d/17736.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix saving of PNG thumbnails, when the original image is in the CMYK color space.
1 change: 1 addition & 0 deletions changelog.d/17783.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Implement [MSC4210](https://github.com/matrix-org/matrix-spec-proposals/pull/4210): Remove legacy mentions. Contributed by @tulir @ Beeper.
1 change: 1 addition & 0 deletions changelog.d/17785.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug with sliding sync where the server would not return state that was added to the `required_state` config.
1 change: 1 addition & 0 deletions changelog.d/17802.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct documentation to refer to the `--config-path` argument instead of `--config-file`.
1 change: 1 addition & 0 deletions changelog.d/17803.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Test github token before running release script steps.
1 change: 1 addition & 0 deletions changelog.d/17805.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug with sliding sync where the server would not return state that was added to the `required_state` config.
1 change: 1 addition & 0 deletions changelog.d/17824.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Build debian packages for new Ubuntu versions, and stop building for no longer supported versions.
1 change: 1 addition & 0 deletions changelog.d/17825.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix typo in `target_cache_memory_usage` docs.
1 change: 1 addition & 0 deletions changelog.d/17826.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enable the `.org.matrix.msc4028.encrypted_event` push rule by default in accordance with [MSC4028](https://github.com/matrix-org/matrix-spec-proposals/pull/4028). Note that the corresponding experimental feature must still be switched on for this push rule to have any effect.
1 change: 1 addition & 0 deletions changelog.d/17842.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix some typing issues uncovered by upgrading mypy to 1.11.x.
3 changes: 2 additions & 1 deletion contrib/cmdclient/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
#
#

""" Starts a synapse client console. """
"""Starts a synapse client console."""

import argparse
import binascii
import cmd
Expand Down
4 changes: 2 additions & 2 deletions contrib/graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#

import argparse
import cgi
import datetime
import html
import json
import urllib.request
from typing import List
Expand Down Expand Up @@ -85,7 +85,7 @@ def make_graph(pdus: List[dict], filename_prefix: str) -> None:
"name": name,
"type": pdu.get("pdu_type"),
"state_key": pdu.get("state_key"),
"content": cgi.escape(json.dumps(pdu.get("content")), quote=True),
"content": html.escape(json.dumps(pdu.get("content")), quote=True),
"time": t,
"depth": pdu.get("depth"),
}
Expand Down
Loading

0 comments on commit 1ee22e2

Please sign in to comment.