aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-04-17 12:17:20 +0100
committerGitHub <noreply@github.com>2020-04-17 12:17:20 +0100
commit0d116d92224040526094dd26dd054f91a8267c49 (patch)
treeae76329beb7842332d2f72722f8f498d76287b10 /common
parent3c2e6f967b44d895e2145d91b2f3414c9451f181 (diff)
Allow anyone to publish rooms (#971)
* Allow anyone to publish rooms * Formatting and unused var * Review comments
Diffstat (limited to 'common')
-rw-r--r--common/eventcontent.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/eventcontent.go b/common/eventcontent.go
index c07c5627..f3817ba6 100644
--- a/common/eventcontent.go
+++ b/common/eventcontent.go
@@ -48,6 +48,7 @@ func InitialPowerLevelsContent(roomCreator string) (c gomatrixserverlib.PowerLev
"m.room.history_visibility": 100,
"m.room.canonical_alias": 50,
"m.room.avatar": 50,
+ "m.room.aliases": 0, // anyone can publish aliases by default. Has to be 0 else state_default is used.
}
c.Users = map[string]int64{roomCreator: 100}
return c