summaryrefslogtreecommitdiffstats
path: root/model/post.go
Commit message (Collapse)AuthorAgeFilesLines
* fix client4 post sanitization (#8219)Chris2018-02-081-6/+7
|
* PLT-7537: Move channel CLI command posts system message to channel. (#8161)Vordimous2018-02-071-0/+2
| | | | | | | | | | | | * [PTL-7537] implement feature and test * [PTL-7537] Update feature to post the the room requiring a username flag to be used * [PTL-7537] update tests with username * update test to remove changes to the test helper struct * use the basic team and user
* unnamed return (#8170)Chris2018-01-301-14/+5
|
* Merge branch 'release-4.6'Harrison Healey2018-01-231-3/+5
|\
| * PLT-8522 Added separate messages for being removed from channel or team (#8078)Harrison Healey2018-01-101-3/+5
| |
* | PLT-3383: image proxy support (#7991)Chris2018-01-221-12/+114
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Post a system message to the affected channel by CLI command (#7877) (#7968)Evgeniy2018-01-181-27/+29
|/
* PLT-6217-bis Fixes system message posted to Town Square when a user joins a ↵Tsilavina Razafinirina2017-12-081-7/+22
| | | | | | | | team #7863 (#7864) * Adds new string post message when a user has joined a team (#6483) * Simplifies long if statement in post.go (#6483)
* PLT-5458: If someone posts a channel link to channel_A that you don't belong ↵Chris2017-11-281-0/+17
| | | | | | | | | | | | to, it doesn't render properly (#7833) * add channel link hints to post props * optimization * update regex, add unit test * fix rebase issue
* PLT-6217 Fixes system message posted to Town Square when a member leaves a ↵Tsilavina Razafinirina2017-11-201-2/+4
| | | | | | | | | | | | | | | | | | team (#7752) * Fixes system message posted to Town Square when adding/removing team member (#6483) Fixes unit test method call to match RemoveUserFromTeam modification (#6483) Fixes system message posted to Town Square when adding/removing team member (#6483) Removes unnessary error message * Updates system message when a user leaves a team (#6483) * Changes system message when a user is removed from team (#6483) * Adds a new string to be post to town-square when a member is added to a team (#6483)
* PLT-7599: webhook post splitting (#7707)Chris2017-10-241-0/+1
| | | | | | | | * webhook post splitting * style fix * update old webhook test
* [PLT-7362] Option to add user to channel if mentioned user is not currently ↵Saturnino Abril2017-10-211-0/+13
| | | | | | | | | | | | | | | | in the channel (#7619) * Option to add user to channel if mentioned user is not currently in the channel * instead of link from server, just add component on client side to add channel member * change implementation using post.props * do clean up and add test * sanitize post.props['add_channel_member'] on post creation * move sanitize to app.CreatePost and also apply to app.UpdatePost
* Allow custom post types (#7468)Joram Wilander2017-09-271-2/+4
|
* interactive post update fix (#7477)Chris2017-09-191-10/+20
|
* Model: NewLocAppError -> NewAppError (#7450)George Goldberg2017-09-151-15/+16
|
* PLT-6403: Interactive messages (#7274)Chris2017-08-291-1/+84
| | | | | | | | | | * wip * finish first pass * requested changes * add DoPostAction to Client4
* Revert " #4755 Combining consecutive user join/leave system messages to ↵Saturnino Abril2017-08-011-9/+0
| | | | | | | | | | | | 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.
* #4755 Combining consecutive user join/leave system messages to single ↵Debanshu Kundu2017-08-011-0/+9
| | | | | | | | | message and few other changes. (#5945) fix 7 and 8 remove @ at "{username} joined the channel" refactor and update test
* PLT-6475: Elasticsearch Indexing Worker. (#6879)George Goldberg2017-07-111-0/+6
|
* 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 put /posts/{post_id}/patch (#5883)Saturnino Abril2017-03-291-0/+50
| | | | | | * APIv4 put /posts/{post_id}/patch * Add props and edit permission
* Add pinned posts (#4217)Gabin Aureche2017-03-131-0/+1
|
* PLT-5225 Added separate post types for certain system messages (#5193)Harrison Healey2017-01-271-2/+8
| | | | | | | | | | | | * Added separate post types for system_join_leave and system_add_remove posts * Added username prop to channel deleted posts * Changed slack import to properly generate the new join/leave messages * Added username prop to channel update posts * Moved Post(AddTo/RemoveFrom)ChanneMessage into app package
* PLT-2978: Add channel purpose change system message. (#5094)George Goldberg2017-01-171-1/+2
| | | Completes original patch by David Lu.
* PLT-135 Showing "(Edited)" indicator if a message has been edited. (#4923)Debanshu Kundu2017-01-121-0/+1
|
* Fix channel_deleted post type (#4841)enahum2016-12-201-1/+3
|
* GH-4685 Post a System Message when channel is renamed (#4762)Nick Frazier2016-12-201-1/+2
| | | | | | | | | | * test changes * added system message when displayname changed * added test * gofmt
* PLT-4839 Split too-long Slack messages on import. (#4679)George Goldberg2016-12-021-5/+10
| | | | | | | | | | * PLT-4839 Split too-long Slack messages on import. This PR also takes the opportunity to make the max values for Post properties into constants for easier use elsewhere, as has previously been done for Channel properties. * Only count runes once.
* PLT-1378 Initial version of emoji reactions (#4520)Harrison Healey2016-11-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactored emoji.json to support multiple aliases and emoji categories * Added custom category to emoji.jsx and stabilized all fields * Removed conflicting aliases for :mattermost: and :ca: * fixup after store changes * Added emoji reactions * Removed reactions for an emoji when that emoji is deleted * Fixed incorrect test case * Renamed ReactionList to ReactionListView * Fixed :+1: and :-1: not showing up as possible reactions * Removed text emoticons from emoji reaction autocomplete * Changed emoji reactions to be sorted by the order that they were first created * Set a maximum number of listeners for the ReactionStore * Removed unused code from Textbox component * Fixed reaction permissions * Changed error code when trying to modify reactions for another user * Fixed merge conflicts * Properly applied theme colours to reactions * Fixed ESLint and gofmt errors * Fixed ReactionListContainer to properly update when its post prop changes * Removed unnecessary escape characters from reaction regexes * Shared reaction message pattern between CreatePost and CreateComment * Removed an unnecessary select query when saving a reaction * Changed reactions route to be under /reactions * Fixed copyright dates on newly added files * Removed debug code that prevented all unit tests from being ran * Cleaned up unnecessary code for reactions * Renamed ReactionStore.List to ReactionStore.GetForPost
* PLT-3105 Files table migration (#4068)Harrison Healey2016-09-301-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implemented initial changes for files table * Removed *_benchmark_test.go files * Re-implemented GetPublicFile and added support for old path * Localization for files table * Moved file system code into utils package * Finished server-side changes and added initial upgrade script * Added getPostFiles api * Re-add Extension and HasPreviewImage fields to FileInfo * Removed unused translation * Fixed merge conflicts left over after permissions changes * Forced FileInfo.extension to be lower case * Changed FileUploadResponse to contain the FileInfos instead of FileIds * Fixed permissions on getFile* calls * Fixed notifications for file uploads * Added initial version of client code for files changes * Permanently added FileIds field to Post object and removed Post.HasFiles * Updated PostStore.Update to be usable in more circumstances * Re-added Filenames field and switched file migration to be entirely lazy-loaded * Increased max listener count for FileStore * Removed unused fileInfoCache * Moved file system code back into api * Removed duplicate test case * Fixed unit test running on ports other than 8065 * Renamed HasPermissionToPostContext to HasPermissionToChannelByPostContext * Refactored handleImages to make it more easily understandable * Renamed getPostFiles to getFileInfosForPost * Re-added pre-FileIds posts to analytics * Changed files to be saved as their ids as opposed to id/filename.ext * Renamed FileInfo.UserId to FileInfo.CreatorId * Fixed detection of language in CodePreview * Fixed switching between threads in the RHS not loading new files * Add serverside protection against a rare bug where the client sends the same file twice for a single post * Refactored the important parts of uploadFile api call into a function that can be called without a web context
* PLT-3754 EE: Add a Display Option to disable Join/Leave messages (#3808)enahum2016-08-181-1/+2
| | | | | | | | * PLT-3754 EE: Add a Display Option to disable Join/Leave messages * Differentiate between join/leave add/remove messages * Update user removed from channel text message
* Cleaning up old export code (#3601)Christopher Speller2016-07-151-3/+0
|
* Add websocket event and cache invalidation for deleting channels (#2807)Joram Wilander2016-04-271-0/+1
|
* Changed how posts are marked ephemeralhmhealey2016-02-041-7/+7
|
* Added ephemeral messages sent when a user mentions someone not in the channelhmhealey2016-02-041-5/+7
|
* PLT-7: Refactoring models to use translations (chunk 6)Elias Nahum2016-01-251-14/+14
| | | | - Add spanish translations
* PLT-1380: Post system message when user updates channel headerFlorian Orben2015-12-041-1/+2
|
* PLT-1326: Enable channel posts of type join or leave not trigger unread ↵Florian Orben2015-12-041-3/+8
| | | | notifications
* Add limit to Props size in Post tableJoramWilander2015-12-031-0/+4
|
* Omit unneeded fields from user object in getProfiles service and remove ↵JoramWilander2015-11-091-1/+0
| | | | ImgCount field from Post model
* PLT-857: Support for Incoming Webhooks - Try #2Florian Orben2015-11-051-22/+24
|
* Fixed string length checks for fields that can contain unicode charactershmhealey2015-11-051-3/+4
|
* Changing SpinPunch to Mattermost in copyrightChristopher Speller2015-10-081-1/+1
|
* Pass-through post creation time when importing postsTeviot Systems2015-10-021-1/+4
|
* Adding ability to export data from mattermostChristopher Speller2015-09-041-0/+3
|
* Force fresh timestamp for CreateAt field of Posts before saving to DB.JoramWilander2015-08-271-3/+1
|
* Implemention of slack import feature.Christopher Speller2015-08-191-1/+3
|
* adds predictive posting on the clientJoramWilander2015-08-181-15/+16
|
* Add a post type for user joined/left messages and don't flag a channel as ↵hmhealey2015-07-071-2/+3
| | | | unread when one of those is automatically posted
* first commit=Corey Hulen2015-06-141-0/+147