Files
NodeBB/public/openapi/read/message/mid.yaml
Barış Soner Uşaklı 4c4f3ac983 feat: add direct message link (#12138)
* feat: add direct message link

/message/:mid
add /:index? to chat routes
add copy link to chat messages
add messageCount to each room object
add infinitescroll in both directions to chat

* fix more tests

* test: more text fixes

* test: fix tests

* remove async

* dont crash if element not in dom

clamp scrollToIndex values to 0, msgCount
2023-10-31 10:15:06 -04:00

19 lines
531 B
YAML

get:
tags:
- shorthand
summary: Access a specific chat message
description: This route comes in handy when all you have is the `mid`, and you want to redirect users to the canonical URL for the chat message, with the appropriate user slug and room id
parameters:
- name: mid
in: path
required: true
schema:
type: string
example: 1
responses:
"200":
description: "Canonical URL of chat message"
content:
text/plain:
schema:
type: string