mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-29 03:47:33 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dda4bdc367 | ||
|
|
2a753e612e | ||
|
|
78db465556 |
No files matched your search
@@ -37,9 +37,9 @@ creds:
|
|||||||
- registry: forgejo.ellis.link
|
- registry: forgejo.ellis.link
|
||||||
user: "{{env \"BUILTIN_REGISTRY_USER\"}}"
|
user: "{{env \"BUILTIN_REGISTRY_USER\"}}"
|
||||||
pass: "{{env \"BUILTIN_REGISTRY_PASSWORD\"}}"
|
pass: "{{env \"BUILTIN_REGISTRY_PASSWORD\"}}"
|
||||||
- registry: registry.gitlab.com
|
# - registry: registry.gitlab.com
|
||||||
user: "{{env \"GITLAB_USERNAME\"}}"
|
# user: "{{env \"GITLAB_USERNAME\"}}"
|
||||||
pass: "{{env \"GITLAB_TOKEN\"}}"
|
# pass: "{{env \"GITLAB_TOKEN\"}}"
|
||||||
- registry: git.nexy7574.co.uk
|
- registry: git.nexy7574.co.uk
|
||||||
user: "{{env \"N7574_GIT_USERNAME\"}}"
|
user: "{{env \"N7574_GIT_USERNAME\"}}"
|
||||||
pass: "{{env \"N7574_GIT_TOKEN\"}}"
|
pass: "{{env \"N7574_GIT_TOKEN\"}}"
|
||||||
@@ -58,10 +58,10 @@ defaults:
|
|||||||
|
|
||||||
# Sync configuration - each registry gets different image sets
|
# Sync configuration - each registry gets different image sets
|
||||||
sync:
|
sync:
|
||||||
- source: *source
|
#- source: *source
|
||||||
target: registry.gitlab.com/continuwuity/continuwuity
|
# target: registry.gitlab.com/continuwuity/continuwuity
|
||||||
type: repository
|
# type: repository
|
||||||
<<: *tags-main
|
# <<: *tags-main
|
||||||
- source: *source
|
- source: *source
|
||||||
target: ghcr.io/continuwuity/continuwuity
|
target: ghcr.io/continuwuity/continuwuity
|
||||||
type: repository
|
type: repository
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
# Continuwuity v26.9.4 (2026-11-14)
|
||||||
|
|
||||||
|
No significant changes.
|
||||||
|
|
||||||
|
|
||||||
# Continuwuity v26.9.3 (2026-11-10)
|
# Continuwuity v26.9.3 (2026-11-10)
|
||||||
|
|
||||||
No significant changes.
|
No significant changes.
|
||||||
|
|||||||
Generated
+12
-12
@@ -896,7 +896,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "conduwuit"
|
name = "conduwuit"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aws-lc-rs",
|
"aws-lc-rs",
|
||||||
"clap",
|
"clap",
|
||||||
@@ -934,7 +934,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "conduwuit_admin"
|
name = "conduwuit_admin"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"conduwuit_api",
|
"conduwuit_api",
|
||||||
@@ -959,7 +959,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "conduwuit_api"
|
name = "conduwuit_api"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"base64 0.23.1",
|
"base64 0.23.1",
|
||||||
@@ -992,7 +992,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "conduwuit_build_metadata"
|
name = "conduwuit_build_metadata"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"built",
|
"built",
|
||||||
"cargo_metadata",
|
"cargo_metadata",
|
||||||
@@ -1000,7 +1000,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "conduwuit_core"
|
name = "conduwuit_core"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"argon2",
|
"argon2",
|
||||||
"arrayvec",
|
"arrayvec",
|
||||||
@@ -1065,7 +1065,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "conduwuit_database"
|
name = "conduwuit_database"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-channel",
|
"async-channel",
|
||||||
"conduwuit_core",
|
"conduwuit_core",
|
||||||
@@ -1086,7 +1086,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "conduwuit_macros"
|
name = "conduwuit_macros"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"itertools 0.15.0",
|
"itertools 0.15.0",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
@@ -1096,7 +1096,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "conduwuit_router"
|
name = "conduwuit_router"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"axum-server",
|
"axum-server",
|
||||||
@@ -1132,7 +1132,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "conduwuit_service"
|
name = "conduwuit_service"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"askama",
|
"askama",
|
||||||
"assign",
|
"assign",
|
||||||
@@ -1187,7 +1187,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "conduwuit_web"
|
name = "conduwuit_web"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"askama",
|
"askama",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
@@ -5161,7 +5161,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ruminuwuity"
|
name = "ruminuwuity"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"assign",
|
"assign",
|
||||||
"http",
|
"http",
|
||||||
@@ -7301,7 +7301,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "xtask"
|
name = "xtask"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"askama",
|
"askama",
|
||||||
"cargo_metadata",
|
"cargo_metadata",
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ license = "Apache-2.0"
|
|||||||
# See also `rust-toolchain.toml`
|
# See also `rust-toolchain.toml`
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://forgejo.ellis.link/continuwuation/continuwuity"
|
repository = "https://forgejo.ellis.link/continuwuation/continuwuity"
|
||||||
version = "26.9.3"
|
version = "26.9.4"
|
||||||
|
|
||||||
[workspace.metadata.crane]
|
[workspace.metadata.crane]
|
||||||
name = "conduwuit"
|
name = "conduwuit"
|
||||||
|
|||||||
@@ -33,6 +33,16 @@ impl super::Service {
|
|||||||
return Err!(Request(Forbidden("Redacting m.room.create is not safe, forbidding.")));
|
return Err!(Request(Forbidden("Redacting m.room.create is not safe, forbidding.")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Defense in depth, shouldn't be reachable
|
||||||
|
if redacting_event
|
||||||
|
.as_ref()
|
||||||
|
.is_ok_and(|pdu| pdu.room_id() != Some(room_id))
|
||||||
|
{
|
||||||
|
return Err!(Request(Forbidden(
|
||||||
|
"Cannot redact an event that belongs to a different room."
|
||||||
|
)));
|
||||||
|
}
|
||||||
|
|
||||||
if redacting_event
|
if redacting_event
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.is_ok_and(|pdu| *pdu.kind() == TimelineEventType::RoomServerAcl)
|
.is_ok_and(|pdu| *pdu.kind() == TimelineEventType::RoomServerAcl)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
use conduwuit_core::{
|
use conduwuit_core::{
|
||||||
Result, err,
|
Err, Result, err,
|
||||||
matrix::event::Event,
|
matrix::event::Event,
|
||||||
utils::{self},
|
utils::{self},
|
||||||
warn,
|
warn,
|
||||||
@@ -32,6 +32,12 @@ impl super::Service {
|
|||||||
err!(Database(error!(?pdu_id, %event_id, ?e, "PDU ID points to invalid PDU.")))
|
err!(Database(error!(?pdu_id, %event_id, ?e, "PDU ID points to invalid PDU.")))
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
|
if pdu.room_id() != reason.room_id() {
|
||||||
|
return Err!(Request(Forbidden(
|
||||||
|
"Cannot redact an event that belongs to a different room."
|
||||||
|
)));
|
||||||
|
}
|
||||||
|
|
||||||
let thread_root = match pdu.get_content::<ExtractRelatesTo>() {
|
let thread_root = match pdu.get_content::<ExtractRelatesTo>() {
|
||||||
| Ok(ExtractRelatesTo { relates_to: Relation::Thread(thread) }) =>
|
| Ok(ExtractRelatesTo { relates_to: Relation::Thread(thread) }) =>
|
||||||
Some(thread.event_id),
|
Some(thread.event_id),
|
||||||
|
|||||||
Reference in new issue
Block a user