MM-53764 - Fix: Improve limits on Opengraph Data Cache (#24177)
* enforce strict opengraph cache entry size limit * move json marshalling and error checking into parsOpenGraphMetadata fn * fix linting * fix potential nil deref * Revert "fix potential nil deref" This reverts commit 095bcd496e9b8d97ca63d3a99e2e46eec58ef7ae. * Revert "fix linting" This reverts commit f3e1f7b27634ca0567fd0fef01ac23f5e39009a7. * Revert "move json marshalling and error checking into parsOpenGraphMetadata fn" This reverts commit ba9a1e13b0fb9d4579077b7b37666e950a5fb6ed. * Revert "enforce strict opengraph cache entry size limit" This reverts commit d1de4a8fa40e58ac85c85f66de27ec5aca884b18. * remove /opengraph api endpoint * i18n * removing unneeded action and reducer
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ad142c958e
Коммит
7b0b0d8609
@@ -41,7 +41,6 @@ build-v4: node_modules playbooks
|
||||
@cat $(V4_SRC)/schemes.yaml >> $(V4_YAML)
|
||||
@cat $(V4_SRC)/service_terms.yaml >> $(V4_YAML)
|
||||
@cat $(V4_SRC)/sharedchannels.yaml >> $(V4_YAML)
|
||||
@cat $(V4_SRC)/opengraph.yaml >> $(V4_YAML)
|
||||
@cat $(V4_SRC)/reactions.yaml >> $(V4_YAML)
|
||||
@cat $(V4_SRC)/actions.yaml >> $(V4_YAML)
|
||||
@cat $(V4_SRC)/bots.yaml >> $(V4_YAML)
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
/api/v4/opengraph:
|
||||
post:
|
||||
tags:
|
||||
- OpenGraph
|
||||
summary: Get open graph metadata for url
|
||||
description: >
|
||||
Get Open Graph Metadata for a specif URL. Use the Open Graph protocol to
|
||||
get some generic metadata about a URL. Used for creating link previews.
|
||||
|
||||
|
||||
__Minimum server version__: 3.10
|
||||
|
||||
|
||||
##### Permissions
|
||||
|
||||
No permission required but must be logged in.
|
||||
operationId: OpenGraph
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- url
|
||||
properties:
|
||||
url:
|
||||
type: string
|
||||
description: The URL to get Open Graph Metadata.
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
description: Open Graph retrieval successful
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/OpenGraph"
|
||||
"501":
|
||||
$ref: "#/components/responses/NotImplemented"
|
||||
Ссылка в новой задаче
Block a user