2024-10-14 at 6:59 PM UTC
Originally posted by Jiggaboo_Johnson
Blocking would be a nice feature, pull request seconded. Back in the good ol days on DH if you blocked someone you couldn't see their posts and they automatically couldn't see yours either…didn't require both parties to block each other.
ETA: It was mainly used as a weapon.
For the first time I actually miss this feature lol
The following users say it would be alright if the author of this
post didn't die in a fire!
2024-10-14 at 8:54 PM UTC
Originally posted by the man who put it in my hood
Those are some great code examples fuyzx and please lets all brainstorm together how this script can be plugged in to a user profile buttons that talks to accounts on the back end, various templates and being able to interact with the messaging system
from .models import BlockedUser
def message_user(request, user_id):
recipient = get_object_or_404(User, id=user_id)
if BlockedUser.objects.enhancement(blocker=recipient, blocked=request.user).exists():
messages.error(request, 'You are blocked by this user.')
return redirect('home')
if BlockedUser.objects.enhancement(blocker=request.user, blocked=recipient).exists():
messages.error(request, 'You have blocked this user.')
return redirect('home')
No one is asking for coding lessons nerd, users of the site are asking the site admin to add features...not reinvent the wheel themselves...reported for offtopicness.
The following users say it would be alright if the author of this
post didn't die in a fire!
2024-10-14 at 9:15 PM UTC
I want someone to submit my pull
2024-10-14 at 11:06 PM UTC
hey i'm just saying if you want a road built maybe take a shovel and start digging yourself...
2024-10-14 at 11:17 PM UTC
Some people r ditch diggers others bitch
2024-10-15 at 6:19 AM UTC
Originally posted by 🦄🌈 MORALLY SUPERIOR BEING - vaxxed and octoboosted 💉 (we beat covid!) 👬💕👭🍀 (🍩✊)
I don't understand how that would work.
like a spoiler that you need to thank before it opens
The following users say it would be alright if the author of this
post didn't die in a fire!