diff options
author | Andrew Godwin | 2022-11-21 21:18:13 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-21 21:18:13 -0700 |
commit | 53d94529175dface366a935eea2c2bcc1eeab15c (patch) | |
tree | 169575fc31d532fdb31a924636fc535c55c60df4 /activities/views | |
parent | a80e0f117a0271d428abd939e2896857a8da1b5c (diff) | |
download | takahe-53d94529175dface366a935eea2c2bcc1eeab15c.tar.gz takahe-53d94529175dface366a935eea2c2bcc1eeab15c.tar.bz2 takahe-53d94529175dface366a935eea2c2bcc1eeab15c.zip |
Outgoing mentions mostly work (exc. cc followers)
Diffstat (limited to 'activities/views')
-rw-r--r-- | activities/views/posts.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activities/views/posts.py b/activities/views/posts.py index 14da9ca..de11a09 100644 --- a/activities/views/posts.py +++ b/activities/views/posts.py @@ -1,6 +1,5 @@ from django import forms from django.shortcuts import get_object_or_404, redirect, render -from django.template.defaultfilters import linebreaks_filter from django.utils.decorators import method_decorator from django.views.generic import FormView, TemplateView, View @@ -158,7 +157,7 @@ class Compose(FormView): def form_valid(self, form): Post.create_local( author=self.request.identity, - content=linebreaks_filter(form.cleaned_data["text"]), + content=form.cleaned_data["text"], summary=form.cleaned_data.get("content_warning"), visibility=form.cleaned_data["visibility"], ) |