zulip/zerver/webhooks
Riken Shah a96c614420 message: Fix the edit topic bug by removing leading \n from msg content.
The reason for this bug is because of different striping
processes in the backend and frontend, i.e The frontend
checks if the message's `raw_content` has changed to
decide if the `content` of the message should be sent in
the request to the backend, or not. So, it removes the
leading new line ('\n') from the message `raw_content`
when checking it, which is causing the "Error saving edit:
You don't have permission to edit this message" error.

This commit fixes it by removing the leading new line
when cleaning message content.

The bug was explained by @punchagan and its solution
by @timabbott.
2021-07-06 09:41:54 -07:00
..
airbrake webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
alertmanager webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
ansibletower webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
appfollow webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
appveyor webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
basecamp webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
beanstalk request: Rename validator parameter of REQ to json_validator. 2021-04-07 14:13:06 -07:00
beeminder webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
bitbucket webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
bitbucket2 webhook: Add expect_noop option for check_webhook. 2021-07-05 19:17:11 -07:00
bitbucket3 webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
buildbot webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
canarytoken webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
circleci webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
clubhouse webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
codeship webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
crashlytics webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
delighted webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
deskdotcom webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
dialogflow webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
dropbox webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
errbit webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
flock webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
freshdesk webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
freshping webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
freshstatus python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
front python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
gci webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
gitea webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
github webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
gitlab webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
gocd webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
gogs webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
gosquared webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
grafana webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
greenhouse webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
groove webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
harbor webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
hellosign webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
helloworld webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
heroku python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
homeassistant webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
honeybadger/fixtures
ifttt python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
insping webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
intercom webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
jira webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
jotform webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
json webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
librato python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
lidarr webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
mention webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
netlify webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
newrelic python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
opbeat message: Fix the edit topic bug by removing leading \n from msg content. 2021-07-06 09:41:54 -07:00
opsgenie webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
pagerduty webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
papertrail webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
pingdom webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
pivotal python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
radarr webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
raygun webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
reviewboard webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
rollbar/fixtures
runscope/fixtures
semaphore webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
sentry message: Fix the edit topic bug by removing leading \n from msg content. 2021-07-06 09:41:54 -07:00
slack python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
slack_incoming webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
solano webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
sonarr webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
splunk webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
statuspage webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
stripe webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
taiga webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
teamcity webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
thinkst webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
transifex webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
travis webhook: Add expect_noop option for check_webhook. 2021-07-05 19:17:11 -07:00
trello webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
updown webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
uptimerobot python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
wordpress python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
yo webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME. 2021-06-29 17:01:54 -07:00
zabbix python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
zapier python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
zendesk integration: Update Zendesk Documentation. 2021-03-25 01:40:38 -07:00
__init__.py