Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry
pleroma
Commits
20a496d2
Commit
20a496d2
authored
4 years ago
by
feld
Browse files
Options
Downloads
Patches
Plain Diff
Expose the post formats in /api/v1/instance
parent
64b4de4a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
docs/API/differences_in_mastoapi_responses.md
+1
-0
1 addition, 0 deletions
docs/API/differences_in_mastoapi_responses.md
lib/pleroma/web/mastodon_api/views/instance_view.ex
+2
-1
2 additions, 1 deletion
lib/pleroma/web/mastodon_api/views/instance_view.ex
with
4 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
View file @
20a496d2
...
...
@@ -29,6 +29,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
has been simplified down to
`block_from_strangers`
.
-
**Breaking:**
Notification Settings API option for hiding push notification
contents has been renamed to
`hide_notification_contents`
-
Mastodon API: Added
`pleroma.metadata.post_formats`
to /api/v1/instance
</details>
<details>
...
...
This diff is collapsed.
Click to expand it.
docs/API/differences_in_mastoapi_responses.md
+
1
−
0
View file @
20a496d2
...
...
@@ -236,6 +236,7 @@ Has theses additional parameters (which are the same as in Pleroma-API):
-
`pleroma.metadata.features`
: A list of supported features
-
`pleroma.metadata.federation`
: The federation restrictions of this instance
-
`pleroma.metadata.fields_limits`
: A list of values detailing the length and count limitation for various instance-configurable fields.
-
`pleroma.metadata.post_formats`
: A list of the allowed post format types
-
`vapid_public_key`
: The public key needed for push messages
## Markers
...
...
This diff is collapsed.
Click to expand it.
lib/pleroma/web/mastodon_api/views/instance_view.ex
+
2
−
1
View file @
20a496d2
...
...
@@ -41,7 +41,8 @@ def render("show.json", _) do
account_activation_required:
Keyword
.
get
(
instance
,
:account_activation_required
),
features:
features
(),
federation:
federation
(),
fields_limits:
fields_limits
()
fields_limits:
fields_limits
(),
post_formats:
Config
.
get
([
:instance
,
:allowed_post_formats
])
},
vapid_public_key:
Keyword
.
get
(
Pleroma
.
Web
.
Push
.
vapid_config
(),
:public_key
)
}
...
...
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