Agniva De Sarker
c27814393d
Improve API4 initialization ( #18680 )
...
* Improve API4 initialization
- Refactored openGraphDataCache to be inside app layer.
- Moved the cache instance from global variable to be inside server.
- Moved out the app instantiation from the global commands package
to be instantiated on every call. Only the server instance is passed.
- Moved InitLocal to be called from inside Init.
```release-note
NONE
```
* Remove commented line
```release-note
NONE
```
2021-10-15 19:57:05 +05:30
Ben Schumacher
fd853e74a6
[MM-37755] Idiomatic naming (SMTP, TLS, TCP, XML, CSS, HTML, HTTP) ( #18103 )
2021-08-12 11:49:16 +02:00
Agniva De Sarker
c4b4e1bc38
MM-36271: Bump major version to 6.0 ( #17973 )
...
https://mattermost.atlassian.net/browse/MM-36271
```release-note
We bump the major version to 6.0
```
2021-07-22 12:21:47 +05:30
Jesús Espino
9cc5089af8
Moving mlog to corelibs ( #16915 )
...
* Moving mlog to corelibs
* Regenerating app layers
* Fix golangci-lint problem
* Fixing golangci-lint errors
* Renaming from corelibs to shared
* Renaming from corelibs to shared
* Fixing import
* Fixing merge problems
* Fixing build
2021-03-05 09:18:37 +01:00
Eli Yukelzon
17523fa5d9
MM-21898 - Part 1: Generate and use an interface instead of *A… ( #13840 )
...
* Generate and use an interface instead of *App
2020-02-13 13:26:58 +01:00
Jesús Espino
a76643116f
Making private opengraph methods in the app layer ( #13759 )
2020-01-28 10:56:45 +01:00
Jesús Espino
a63684fcb5
Consistent license message for all the go files ( #13235 )
...
* Consistent license message for all the go files
* Fixing the last set of unconsistencies with the license headers
* Addressing PR review comments
* Fixing busy.go and busy_test.go license header
2019-11-29 12:59:40 +01:00
Miguel de la Cruz
2259b7f2a8
[MM-19948] Set version on module file and internal paths ( #13186 )
...
* [MM-19948] Set version on module file and internal paths
* Fixes after merge
* Fix i18n checker error
2019-11-28 14:39:38 +01:00
Harrison Healey
f1d83eaf81
MM-17043 Downgrade OpenGraph logging to debug level ( #11649 )
2019-07-18 15:46:54 -04:00
Gabe Jackson
8c048a6604
Review error logging ( #10897 )
...
This change lowers the levels of a few log messages in an attempt
to bring them more in line with the severity of the actual message.
2019-05-21 10:57:26 -07:00
Harrison Healey
99ea780f20
MM-13142 Replace mlog.Any with mlog.Err ( #10848 )
2019-05-15 16:04:43 -04:00
Daniel Schalla
a2f46c0466
[MM-13889] Limit OpenGraph data response size ( #10213 )
...
* Limit OpenGraph data response size
* Add LimitReader to Metadata Image
2019-02-01 18:55:43 +01:00
Harrison Healey
1a3ccaf305
MM-13606 Remove consumeAndClose and clean up integration response handling ( #10066 )
...
* MM-13606 Remove consumeAndClose
* Allow overriding HTTPService's request timeout
* MM-13606 Clean up integration response handling
* Properly close httptest servers
* Address feedback
* Only call buf.Bytes when necessary
* Properly check for errors in doOutgoingWebhookRequest
* Add comment explaining ignored ioutil.ReadAll errors
2019-01-09 17:07:08 -05:00
George Goldberg
9afb1586cd
MM-12648: Properly unescape OpenGraph metadata containing HTML entities. ( #9891 )
2018-11-28 10:58:12 +00:00
Harrison Healey
3929cb0141
Replace App.HTTPClient calls after merge ( #9387 )
...
* Replace App.HTTPClient calls after merge
* Add missing import
2018-11-01 15:25:23 -04:00
Harrison Healey
2959b53d98
MM-11272 Add OpenGraph and image dimension metadata to posts ( #9313 )
...
* Move OpenGraph code into its own file
* Move OpenGraph image proxying to app layer
* Move test file code out of api4 package
* MM-11272 Add OpenGraph and image dimension metadata to posts
2018-11-01 15:25:11 -04:00