Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
65ef21b1
Unverified
Commit
65ef21b1
authored
3 years ago
by
Dirk Klimpel
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Clarify that users' media are also preview images (#11862)
parent
a3865ed5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog.d/11862.doc
+1
-0
1 addition, 0 deletions
changelog.d/11862.doc
docs/admin_api/media_admin_api.md
+3
-0
3 additions, 0 deletions
docs/admin_api/media_admin_api.md
docs/admin_api/user_admin_api.md
+8
-1
8 additions, 1 deletion
docs/admin_api/user_admin_api.md
with
12 additions
and
1 deletion
changelog.d/11862.doc
0 → 100644
+
1
−
0
View file @
65ef21b1
Document images returned by the User List Media Admin API can include those generated by URL previews.
This diff is collapsed.
Click to expand it.
docs/admin_api/media_admin_api.md
+
3
−
0
View file @
65ef21b1
...
...
@@ -2,6 +2,9 @@
These APIs allow extracting media information from the homeserver.
Details about the format of the
`media_id`
and storage of the media in the file system
are documented under
[
media repository
](
../media_repository.md
)
.
To use it, you will need to authenticate by providing an
`access_token`
for a server admin: see
[
Admin API
](
../usage/administration/admin_api
)
.
...
...
This diff is collapsed.
Click to expand it.
docs/admin_api/user_admin_api.md
+
8
−
1
View file @
65ef21b1
...
...
@@ -539,6 +539,11 @@ The following fields are returned in the JSON response body:
### List media uploaded by a user
Gets a list of all local media that a specific
`user_id`
has created.
These are media that the user has uploaded themselves
(
[
local media
](
../media_repository.md#local-media
)
), as well as
[
URL preview images
](
../media_repository.md#url-previews
)
requested by the user if the
[
feature is enabled
](
../development/url_previews.md
)
.
By default, the response is ordered by descending creation date and ascending media ID.
The newest media is on top. You can change the order with parameters
`order_by`
and
`dir`
.
...
...
@@ -635,7 +640,9 @@ The following fields are returned in the JSON response body:
Media objects contain the following fields:
-
`created_ts`
- integer - Timestamp when the content was uploaded in ms.
-
`last_access_ts`
- integer - Timestamp when the content was last accessed in ms.
-
`media_id`
- string - The id used to refer to the media.
-
`media_id`
- string - The id used to refer to the media. Details about the format
are documented under
[
media repository
](
../media_repository.md
)
.
-
`media_length`
- integer - Length of the media in bytes.
-
`media_type`
- string - The MIME-type of the media.
-
`quarantined_by`
- string - The user ID that initiated the quarantine request
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment