Merge branch 'fix-1958' into 'develop'
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>
Fri, 17 Jul 2020 18:54:30 +0000 (18:54 +0000)
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>
Fri, 17 Jul 2020 18:54:30 +0000 (18:54 +0000)
OpenAPI: Add :id to follower/following endpoints, fixes #1958

Closes #1958

See merge request pleroma/pleroma!2772

.gitlab/issue_templates/Bug.md
CHANGELOG.md
docs/API/differences_in_mastoapi_responses.md
lib/pleroma/web/mastodon_api/views/instance_view.ex
lib/pleroma/web/templates/o_auth/mfa/recovery.html.eex
lib/pleroma/web/templates/o_auth/mfa/totp.html.eex

index 9ce9b69182441ad145ebcf5dacfa0994954072bb..dd0d6eb247746c332fcb56abec8a16a2a31440ea 100644 (file)
@@ -8,9 +8,7 @@
 
 ### Environment
 
-* Installation type:
-  - [ ] OTP
-  - [ ] From source
+* Installation type (OTP or From Source):
 * Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 
 * Elixir version (`elixir -v` for from source installations, N/A for OTP):
 * Operating system:
index a02f28241b202c394a79dd7d83b2a4b8534b7b7d..75488f026949185417b57569828102a94488df35 100644 (file)
@@ -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>
index c4a9c6dade9aeadfe12140475e359091151623ce..38865dc68a8b4393a7c40d23eceacebf1a7bf434 100644 (file)
@@ -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
index 5deb0d7ed60ba4f71edfdf49a97e1dbb7a7fad98..cd3bc7f00c525f5413a6be3e38613dc44e3b9167 100644 (file)
@@ -41,7 +41,8 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView 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)
       }
index 750f653860d0b02d7854699a0c1ad35e7b926396..5ab59b57b1be9a1e963ea95402be5dce3a3dda07 100644 (file)
@@ -10,7 +10,7 @@
 <%= form_for @conn, mfa_verify_path(@conn, :verify), [as: "mfa"], fn f -> %>
 <div class="input">
   <%= label f, :code, "Recovery code" %>
-  <%= text_input f, :code %>
+  <%= text_input f, :code, [autocomplete: false, autocorrect: "off", autocapitalize: "off", autofocus: true, spellcheck: false] %>
   <%= hidden_input f, :mfa_token, value: @mfa_token %>
   <%= hidden_input f, :state, value: @state %>
   <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
index af6e546b0b852e33f471d3af0c02124187ae6f91..af85777ebb6117f78768da25b6868833de81e8c7 100644 (file)
@@ -10,7 +10,7 @@
 <%= form_for @conn, mfa_verify_path(@conn, :verify), [as: "mfa"], fn f -> %>
 <div class="input">
   <%= label f, :code, "Authentication code" %>
-  <%= text_input f, :code %>
+  <%= text_input f, :code, [autocomplete: false, autocorrect: "off", autocapitalize: "off", autofocus: true, pattern: "[0-9]*", spellcheck: false] %>
   <%= hidden_input f, :mfa_token, value: @mfa_token %>
   <%= hidden_input f, :state, value: @state %>
   <%= hidden_input f, :redirect_uri, value: @redirect_uri %>