summaryrefslogtreecommitdiffstats
path: root/api/post.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-8708 Remove api package (#8784)Joram Wilander2018-05-161-560/+0
| | | | | | | | | | | | | | | | | | | | | | * Remove api package * Remove api dependency from cmd package * Remove EnableAPIv3 setting * Update web tests * Add more websocket tests * Move some ws and oauth tests to api4 package * Move command tests into api4 package * Test fixes * Fix msg command test * Add some app file tests
* remove `go Publish(...)` idiom (#8373)Chris2018-03-021-4/+1
|
* PLT-3383: image proxy support (#7991)Chris2018-01-221-1/+1
| | | | | | | | | | | | * image proxy support * go vet fix, remove mistakenly added coverage file * fix test compile error * add validation to config settings and documentation to model functions * add message_source field to post
* Reduce logging data races, fix MySQL test race condition (#7994)Chris2017-12-221-3/+0
| | | | | | | | * fix races * revert unintentional change * fix test as intended
* HTTP client refactor (#7884)Chris2017-11-221-2/+1
| | | | | | * http client refactor * simplification
* Performance improvements for 40M posts (#7708)Christopher Speller2017-10-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | * Optimizing get root posts SQL query * Setting session invalidation to be reliable * Adding app reciever to SessionHasPermissionToUser * Adding app reciever to SessionHasPermissionToTeam * Adding app reciever to SessionHasPermissionTo * Clear session cache if permission was denied * Fixing rebase issues * Revert "Optimizing get root posts SQL query" This reverts commit f364757e7015cfb4ec673d0a4fc3d57cd25d8dd7. * Fixing build
* Reduce utils.Cfg references (#7650)Chris2017-10-181-1/+1
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* Goroutine wranglin (#7556)Chris2017-10-031-1/+3
| | | | | | * goroutine wranglin * synchronize WebConn.WritePump
* remove remaining Global() calls (outside of tests) (#7521)Chris2017-09-281-1/+1
|
* PLT-7470: Add metrics for searches. (#7507)George Goldberg2017-09-251-0/+12
|
* remove global refs from api/api4 (#7496)Chris2017-09-221-26/+26
|
* Renaming repoChristopher Speller2017-09-061-3/+3
|
* app type transition (#7167)Chris2017-09-061-31/+31
|
* Api: NewLocAppError -> NewAppError (#7280)George Goldberg2017-09-011-5/+3
|
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-311-1/+11
| | | | | | | | | | | | | | | | * Implement user access tokens and new roles * Update config.json * Add public post permission to apiv3 * Remove old comment * Fix model unit test * Updates to store per feedback * Updates per feedback from CS
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* Fix blanking out of FileIds and backwards compatability issue with v3 (#5950)Joram Wilander2017-04-041-1/+1
|
* PLT-5900 Removed automatic configuration of SiteURL (#5952)Harrison Healey2017-04-041-2/+2
| | | | | | | | | | | | | | | | * Revert "PLT-5765 Passed SiteURL to SendNotifications (#5705)" This reverts commit a8e68bd8905972ae59de90fa33d5b3e3c274dc47. * Removed automatic configuration of SiteURL * Reverted unintentional config changes * Updated help text * Added link to docs in Site URL warning * Fixed merge conflict
* PLT-5483 Fix bug where flagged posts endpoint returned posts on other teams ↵Joram Wilander2017-03-311-1/+6
| | | | | | | | (#5765) * Fix bug where flagged posts endpoint returned posts on other teams * Include flagged posts from DMs/GMs
* Add http_proxy support for http client (#5571)Josta Yee2017-03-201-1/+1
| | | | | | | | | | | | | | | | - if 'http_proxy' environment variable is set, respect it when creating http client - otherwise initialize a http client with timeout settings Add ogjson to cache even when it fails in this way we can prevent from requesting unparsable urls repeatedly Extend expire time of cached link preview data to a week There's no need to invalidate cache and send request again frequently Revert timeout Revert cache_expire_time
* Merge branch 'release-3.7' into master.George Goldberg2017-03-171-2/+2
|\
| * PLT-5765 Passed SiteURL to SendNotifications (#5705)Harrison Healey2017-03-101-2/+2
| |
* | Add pinned posts (#4217)Gabin Aureche2017-03-131-0/+55
|/
* Add system console switch for enabling link previews (#5663)Joram Wilander2017-03-061-0/+5
|
* PLT-5355: Fix permalink to private/direct channels. (#5574)George Goldberg2017-03-021-2/+17
| | | | Appropriate permission checks depend on the type of channel this permalink links to.
* Fixing file info caching issue with Aurora for master (#5477)Corey Hulen2017-02-201-2/+5
|
* Implement some post endpoints for APIv4 (#5353)Joram Wilander2017-02-131-1/+1
| | | | | | | | | | | | * Implement POST /posts endpoint for APIv4 * Implement GET /channels/{channel_id}/posts endpoint for APIv4 * Implement GET /posts/{post_id} endpoint for APIv4 * Implement GET /posts/{post_id}/thread endpoint for APIv4 * Skip team get if it's a DM channel in handlePostEvents
* PLT-5455 Added caching for OG metadata of link preview. (#5361)Debanshu Kundu2017-02-121-3/+15
|
* PLT-5379 Fix the error occuring while fetching OG metadata for links which ↵Debanshu Kundu2017-02-071-0/+1
| | | | don't exist. (#5308)
* More app code migration (#5170)Joram Wilander2017-01-251-299/+57
| | | | | | | | * Migrate admin functions into app package * More user function refactoring * Move post functions into app package
* Closing response body when fetching link previews (#5181)Christopher Speller2017-01-241-0/+1
|
* Move permissions code into app package (#5146)Joram Wilander2017-01-231-12/+22
| | | | | | * Move permissions code into app package * Revert getPosts permission
* #4257 Added functionality to create previews for post links using open ↵Debanshu Kundu2017-01-201-0/+29
| | | | graph data from those links. (#4890)
* Message Editing and Deleting permissions (#4692)Amit Yadav2017-01-181-2/+21
|
* Refactor and migrate more functions out of api into app package (#5063)Joram Wilander2017-01-131-8/+13
|
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-1145/+31
| | | | | | | | | | * Add app package and move logic over from api package * Change app package functions to return errors * Move non-api tests into app package * Fix merge
* Merge branch 'release-3.6'Christopher Speller2017-01-121-225/+263
|\
| * Fix slack link parsing for integrations without attachments (#5050)Joram Wilander2017-01-121-8/+12
| |
| * Fixing DM channel emails (#5038)Christopher Speller2017-01-101-5/+8
| |
| * Use status cache for checking @here notifications (#5035)Joram Wilander2017-01-101-15/+10
| |
| * Slack format for Slash command messages (#4999)Zeger-Jan van de Weg2017-01-091-36/+67
| | | | | | | | | | | | | | | | | | | | | | | | * Slash commands accept Slack format Until this commit the slash commands only accepted 'text' properties. For better styling however, Slack formatting support was added. However, ephemeral messages are not supported, and only text will be displayed. * Allow emphemeral Slack messages
| * Fixing bulk loading perf issue (#4974)Corey Hulen2017-01-061-192/+196
| |
| * PLT-4096 fix error/panic on replying to integrations. (#4968)George Goldberg2017-01-061-3/+4
| |
* | PLT-135 Showing "(Edited)" indicator if a message has been edited. (#4923)Debanshu Kundu2017-01-121-0/+1
|/
* Adding memcache to getchannel (#4928)Christopher Speller2017-01-031-2/+3
|
* PLT-5073 Improve performance of /channels/view endpoint (#4881)Joram Wilander2016-12-231-1/+1
| | | | | | * Improve performance of /channels/view endpoint * Fix store unit test
* Adding caching of last 60 posts. (#4880)Christopher Speller2016-12-221-1/+1
|
* Adding session cache directly to web-conn (#4861)Christopher Speller2016-12-221-3/+3
|
* Modifying post etag cache to apply to getPostsSince (#4837)Christopher Speller2016-12-201-1/+1
|
* Adding metrics for caching mechanisms (#4828)Christopher Speller2016-12-191-6/+6
|