1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-11-02 16:37:19 -04:00

Respect FULLBRUTALISM flag when boosting or faving

This commit is contained in:
Jason McBrayer 2018-05-04 10:58:37 -04:00
parent 1004b88779
commit d39593868d

View File

@ -244,7 +244,9 @@ def fav(request, id):
mastodon.status_favourite(id)
return redirect(thread, id)
else:
return render(request, 'main/fav.html', {"toot": toot})
return render(request, 'main/fav.html',
{"toot": toot,
'fullbrutalism': fullbrutalism_p(request)})
@never_cache
def boost(request, id):
@ -258,4 +260,6 @@ def boost(request, id):
mastodon.status_reblog(id)
return redirect(thread, id)
else:
return render(request, 'main/boost.html', {"toot": toot})
return render(request, 'main/boost.html',
{"toot": toot,
"fullbrutalism": fullbrutalism_p(request)})