aboutsummaryrefslogtreecommitdiff
path: root/blog/views.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-07-13 16:07:24 -0400
committerBobby <[email protected]>2023-07-13 16:07:24 -0400
commitc9c0ee4e963e79910dd347c8adc4418ae818690a (patch)
tree28abed25590845b337eeb8633370706fbbc57b4a /blog/views.py
parent8171d41e66484ab140df28bf44f6e95deb72de2f (diff)
downloadthatcomputerscientist-c9c0ee4e963e79910dd347c8adc4418ae818690a.tar.xz
thatcomputerscientist-c9c0ee4e963e79910dd347c8adc4418ae818690a.zip
Update Branding and Redirect to `shi.foo`
Diffstat (limited to 'blog/views.py')
-rw-r--r--blog/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/blog/views.py b/blog/views.py
index e09ec3fb..18bf0424 100644
--- a/blog/views.py
+++ b/blog/views.py
@@ -204,7 +204,7 @@ def post(request, slug):
if post.is_public:
# modify request.meta description (only text) and image
request.meta['description'] = BeautifulSoup(first_paragraph, 'html.parser').get_text()
- request.meta['image'] = 'https://thatcomputerscientist.com/ignis/post_image/720/' + str(post.id) + '.gif'
+ request.meta['image'] = 'https://shi.foo/ignis/post_image/720/' + str(post.id) + '.gif'
read_next = next_read(post)
@@ -283,7 +283,7 @@ def anon_comment(request, slug):
messages.error(request, 'Please enter a comment!')
return redirect(reverse('blog:post', kwargs={'slug': slug}))
if not anonymous_email:
- anonymous_email = ''.join(random.choice(string.ascii_lowercase) for i in range(10)) + '@anonymous.thatcomputerscientist.com'
+ anonymous_email = ''.join(random.choice(string.ascii_lowercase) for i in range(10)) + '@anonymous.shi.foo'
if not anonymous_token:
anonymous_token = ''.join(random.choice(string.ascii_lowercase) for i in range(10))
at = anonymous_token