Small fix in full toot view
This commit is contained in:
parent
090fb1ec4d
commit
6cf660bda1
|
@ -377,6 +377,7 @@ def settings(request):
|
||||||
@never_cache
|
@never_cache
|
||||||
@br_login_required
|
@br_login_required
|
||||||
def toot(request, mention=None):
|
def toot(request, mention=None):
|
||||||
|
account, mastodon = get_usercontext(request)
|
||||||
if request.method == 'GET':
|
if request.method == 'GET':
|
||||||
if mention:
|
if mention:
|
||||||
if not mention.startswith('@'):
|
if not mention.startswith('@'):
|
||||||
|
@ -392,8 +393,6 @@ def toot(request, mention=None):
|
||||||
elif request.method == 'POST':
|
elif request.method == 'POST':
|
||||||
form = PostForm(request.POST, request.FILES)
|
form = PostForm(request.POST, request.FILES)
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
account, mastodon = get_usercontext(request)
|
|
||||||
|
|
||||||
# create media objects
|
# create media objects
|
||||||
media_objects = []
|
media_objects = []
|
||||||
for index in range(1,5):
|
for index in range(1,5):
|
||||||
|
|
Loading…
Reference in New Issue