summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-11-21 12:13:55 +0100
committerLibravatar GitHub <noreply@github.com>2024-11-21 12:13:55 +0100
commitc2029df9bcfa05c19cf3644f2e686da35e267c68 (patch)
tree0b21c0bca8cc25743b2679ed5f026ed0afafd16f /docs/api
parent[chore] Bump cross-spawn from 7.0.3 to 7.0.6 in /web/source (#3552) (diff)
downloadgotosocial-c2029df9bcfa05c19cf3644f2e686da35e267c68.tar.xz
[feature] Allow emoji shortcode to be 1-character length (#3556)
* [feature] Allow emoji shortcode to be 1-character length * testerino fixeroni * spaghet
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index 2370cc36c..4e30e9552 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -4920,7 +4920,7 @@ paths:
- description: The code to use for the emoji, which will be used by instance denizens to select it. This must be unique on the instance.
in: formData
name: shortcode
- pattern: \w{2,30}
+ pattern: \w{1,30}
required: true
type: string
- description: A png or gif image of the emoji. Animated pngs work too! To ensure compatibility with other fedi implementations, emoji size limit is 50kb by default.
@@ -5066,7 +5066,7 @@ paths:
- description: The code to use for the emoji, which will be used by instance denizens to select it. This must be unique on the instance. Works for the `copy` action type only.
in: formData
name: shortcode
- pattern: \w{2,30}
+ pattern: \w{1,30}
type: string
- description: A new png or gif image to use for the emoji. Animated pngs work too! To ensure compatibility with other fedi implementations, emoji size limit is 50kb by default. Works for LOCAL emojis only.
in: formData