summaryrefslogtreecommitdiffstats
path: root/app/post.go
Commit message (Collapse)AuthorAgeFilesLines
* Renaming repoChristopher Speller2017-09-061-4/+4
|
* app type transition (#7167)Chris2017-09-061-82/+82
|
* App: NewLocAppError -> NewAppError (#7327)George Goldberg2017-09-011-8/+6
| | | | | | * App: NewLocAppError -> NewAppError * Remove statuscode that got missed.
* Config to make town square read only (#7140)David Meza2017-09-011-11/+40
| | | | | | | | | | | | | | | | | | | | | | * Be able to make Town Square read-only (Disable typing messages for non admins). * Do not emit UserTypingEvent when TownSquareIsReadOnly and is Town Square. * Add unit tests for TownSquareIsReadOnly config value and logic. * Add TownSquareIsReadOnly to System console>Policy. Added Telemetry. * Add control for TownSquareIsReadOnly=true only for License Enterprise Edition E10 & E20. * Update en.json * Update en.json * Update policy_settings.jsx * Change config value from TownSquareIsReadOnly to ExperimentalTownSquareIsReadOnly. * Refactored to simplify. Avoid code repeat and multiple db calls.
* PLT-6403: Interactive messages (#7274)Chris2017-08-291-1/+66
| | | | | | | | | | * wip * finish first pass * requested changes * add DoPostAction to Client4
* PLT-5745 Cleaning up duplicate calls (#7298)Corey Hulen2017-08-281-19/+25
| | | | | | | | * PLT-5745 Cleaning up duplicate calls * Fixing missing calls * Fixing broken test
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-161-3/+3
| | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* PLT-6358: Server HTTP client improvements (#6980)Chris2017-08-091-1/+1
| | | | | | | | | | | | | | | | * restrict untrusted, internal http connections by default * command test fix * more test fixes * change setting from toggle to whitelist * requested ui changes * add isdefault diagnostic * fix tests
* Revert " #4755 Combining consecutive user join/leave system messages to ↵Saturnino Abril2017-08-011-2/+2
| | | | | | | | | | | | single message and few other changes." (#7072) * Revert "PLT-6603: Don't return all posts on invalid query. (#7061)" This reverts commit 25a2013890c7e07b4621fa9b18342e7f35363049. * Revert " #4755 Combining consecutive user join/leave system messages to single message and few other changes. (#5945)" This reverts commit 8a91235fb3cdc8d094dbc2eaa0d7baa447132b3c.
* PLT-6603: Don't return all posts on invalid query. (#7061)George Goldberg2017-07-311-0/+5
| | | | | | If the query contains only * or invalid punctuation only components, don't return all posts - instead return no results. This also fixes PLT-6608
* #4755 Combining consecutive user join/leave system messages to single ↵Debanshu Kundu2017-08-011-2/+2
| | | | | | | | | message and few other changes. (#5945) fix 7 and 8 remove @ at "{username} joined the channel" refactor and update test
* PLT-7040: Fix capitalisation of Elasticsearch in Config. (#7020)George Goldberg2017-07-271-5/+5
|
* PLT-6596: Elasticsearch interface changes. (#6993)George Goldberg2017-07-211-1/+1
|
* Merge branch 'release-4.0'Christopher Speller2017-07-181-8/+8
|\
| * Only apply never edit policy setting when message changes (#6947)Joram Wilander2017-07-181-7/+7
| |
| * Only apply edit policy setting if message changed (#6930)Joram Wilander2017-07-151-1/+1
| |
* | PLT-6976: Elasticsearch capitalisation and tests. (#6839)George Goldberg2017-07-071-6/+6
|/ | | | | | | * Fixes Elasticsearch to have consistent capitalisation everywhere across the code and UI (except the config file unfortunately). * Adds basic unit tests for Elastichsearch. * Adds a Elasticsearch docker image to the Makefile to enable testing the Elasticsearch feature.
* PLT-6960 Only update post.EditAt when the message changes (#6840)Harrison Healey2017-07-041-3/+5
|
* Fix EnablChannelViewedMessages typo (#6822)Jason Blais2017-07-031-1/+1
| | | | | | | | | | | | | | | | * Update config.json * Update config.go * Update config.go * Update channel.go * Update post.go * Update diagnostics.go * Update config.go
* PLT-6610 sending websocket event for last channel viewed (#6787)Corey Hulen2017-06-291-0/+6
|
* fix permission app error with updatePost (#6749)Saturnino Abril2017-06-261-5/+0
|
* PLT-5705 Created a single source of http.Client creation logic with internet ↵Torsten Juergeleit2017-05-311-38/+6
| | | | proxy support, reasonable timeouts and optional insecure connections (#6503)
* PLT-6472: Basic Elastic Search implementation. (#6382)George Goldberg2017-05-181-15/+93
| | | | | | | | | | | | | | * PLT-6472: Basic Elastic Search implementation. This currently supports indexing of posts at create/update/delete time. It does not support batch indexing or reindexing, and does not support any entities other than posts yet. The purpose is to more-or-less replicate the existing full-text search feature but with some of the immediate benefits of using elastic search. * Alter settings for AWS compatability. * Remove unneeded i18n strings.
* Fixing error messages (#5995)Corey Hulen2017-04-121-2/+2
|
* 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
* APIv4 GET /users/{user_id}/posts/flagged (#5984)Saturnino Abril2017-04-051-0/+8
| | | | | | * APIv4 GET /users/{user_id}/posts/flagged * change permission check
* Fix blanking out of FileIds and backwards compatability issue with v3 (#5950)Joram Wilander2017-04-041-18/+15
|
* PLT-5900 Removed automatic configuration of SiteURL (#5952)Harrison Healey2017-04-041-9/+9
| | | | | | | | | | | | | | | | * 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-0/+8
| | | | | | | | (#5765) * Fix bug where flagged posts endpoint returned posts on other teams * Include flagged posts from DMs/GMs
* APIv4 put /posts/{post_id}/patch (#5883)Saturnino Abril2017-03-291-4/+31
| | | | | | * APIv4 put /posts/{post_id}/patch * Add props and edit permission
* Add query parameters to get posts v4 endpoint (#5858)Joram Wilander2017-03-241-0/+16
| | | | | | * Add since query paremeter to get posts v4 endpoint * Add query paremeters for before/after to get posts v4 endpoint
* Add http_proxy support for http client (#5571)Josta Yee2017-03-201-5/+31
| | | | | | | | | | | | | | | | - 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
* PLT-5765 Passed SiteURL to SendNotifications (#5705)Harrison Healey2017-03-101-9/+9
|
* Added additional validation for slack attachment format on server (#5680)Harrison Healey2017-03-081-29/+9
|
* Set timeout to http client (#5540)Josta Yee2017-02-281-3/+10
| | | Update client
* Implement posts endpoints for APIv4 (#5480)Ruzette Tanyag2017-02-211-0/+1
| | | | | | | | | | * Implement delete post endpoint for apiv4 * Implement POST search post endpoint for APIv4 * removed delete post quotes * rearrange formatting
* Fixing file info caching issue with Aurora for master (#5477)Corey Hulen2017-02-201-2/+2
|
* Added NewPostList constructor to set fields to be non-null (#5440)Harrison Healey2017-02-161-1/+1
|
* Remove MakeDirectChannelVisible and add client handling for showing DMs (#5430)Joram Wilander2017-02-151-8/+0
|
* Implement some post endpoints for APIv4 (#5353)Joram Wilander2017-02-131-8/+24
| | | | | | | | | | | | * 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
* Add caching for file infos (#5330)Joram Wilander2017-02-071-1/+2
|
* PLT-5379 Fix the error occuring while fetching OG metadata for links which ↵Debanshu Kundu2017-02-071-1/+1
| | | | don't exist. (#5308)
* Merge 3.6.2 into master (#5211)Joram Wilander2017-01-271-3/+3
| | | | | | | | | | * Add webhook cache * Add channel by name cache * Fxing profiles in channels cache * Fix merge
* More app code migration (#5170)Joram Wilander2017-01-251-0/+305
| | | | | | | | * Migrate admin functions into app package * More user function refactoring * Move post functions into app package
* PLT-5284 Fix webhook notifications for channel creator is not in (#5119)Joram Wilander2017-01-201-4/+4
| | | | | | * Fix webhook notifications for channel creator is not in * Fix unit test
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-0/+196
* 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