Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Admin API to query the topic and avatar of a given room #8300

Closed
rxl881 opened this issue Sep 11, 2020 · 4 comments · Fixed by #8305
Closed

Admin API to query the topic and avatar of a given room #8300

rxl881 opened this issue Sep 11, 2020 · 4 comments · Fixed by #8305
Labels
A-Admin-API z-p2 (Deprecated Label)

Comments

@rxl881
Copy link

rxl881 commented Sep 11, 2020

It would be useful for a server admin to be able to query the topic and avatar of rooms (without joining).

@tulir
Copy link
Member

tulir commented Sep 11, 2020

@rxl881
Copy link
Author

rxl881 commented Sep 12, 2020

I am probably being blind, but I can't see the room topic (not room name) or avatar in the list of fields returned in the JSON response body? Please do say if I'm just not seeing it.

e.g, from the docs:

{
  "room_id": "!mscvqgqpHYjBGDxNym:matrix.org",
  "name": "Music Theory",
  "canonical_alias": "#musictheory:matrix.org",
  "joined_members": 127
  "joined_local_members": 2,
  "version": "1",
  "creator": "@foo:matrix.org",
  "encryption": null,
  "federatable": true,
  "public": true,
  "join_rules": "invite",
  "guest_access": null,
  "history_visibility": "shared",
  "state_events": 93534
}

@tulir
Copy link
Member

tulir commented Sep 12, 2020

Oops, sorry, I didn't read the issue carefully enough. It should be fairly trivial to add to that room details endpoint though. The implementation seems to use the room_stats_state table, which does contain avatar and topic fields

@rxl881
Copy link
Author

rxl881 commented Sep 13, 2020

Cool. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Admin-API z-p2 (Deprecated Label)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants