Technical Problems

I converted that over to javascript to make it a little bit easier to use in a browser dev tools, that way you don’t have to figure out your csrf token or cookies. The main thing is you have to update this single line with the user name you’re trying ignore UPDATE THIS USER NAME HERE!!!. I’m a little too lazy to figure out which headers are strictly necessary though…

function requestHeaders() {
    let headers = {
        "headers": {
            "accept": "*/*",
            "accept-language": "en-US,en;q=0.9,de;q=0.8,la;q=0.7",
            "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
            "discourse-logged-in": "true",
            "discourse-present": "true",
            "sec-ch-ua": "\"Google Chrome\";v=\"107\", \"Chromium\";v=\"107\", \"Not=A?Brand\";v=\"24\"",
            "sec-ch-ua-mobile": "?0",
            "sec-ch-ua-platform": "\"Windows\"",
            "sec-fetch-dest": "empty",
            "sec-fetch-mode": "cors",
            "sec-fetch-site": "same-origin",
            "x-requested-with": "XMLHttpRequest",
            "Referer": "https://unstuckpolitics.com/u/",
            "Referrer-Policy": "strict-origin-when-cross-origin"
        },
        "body": "notification_level=ignore&expiring_at=3022-11-20+18%3A00-08%3A00",
        "method": "PUT"
    }

    headers["headers"]["x-csrf-token"] = document.querySelector('meta[name="csrf-token"]').content;
    headers["headers"]["cookie"] = document.cookie;

    return headers;
}

const userToIgnore = "UPDATE THIS USER NAME HERE!!!"
const headers = requestHeaders() 

fetch(`https://unstuckpolitics.com/u/${userToIgnore}/notification_level.json`, headers)
    .then(res => res.json())
    .then(console.log)
1 Like

How does one set a profile to “private?” There are a number of users whom, when I click on their names, a message pops up stating “this user’s profile is set to private.” However, I see no such option in the preferences section of my account.

preferences → interface

1 Like

And doesn’t prevent people from finding your old posts anyway.

nm

If I’m “tracking” a thread and the last post is from someone I’ve blocked, the little indicator with the number of unread posts never goes away and it always shows up at the top of my “suggested topics” until I actually show the hidden posts.

This always happened to me with the Trump thread because I couldn’t bear reading the bot’s nonsense and had it blocked. And of course since I have goldfish brain I’d refresh the page and go “oh hey! Two new posts click nope, just Trump.” Then two minues later: “oh hey! Two new posts…”

2 Likes

this isn’t really a site problem I don’t think, more of a general problem with embedded video but the volume slider is basically useless and has almost zero effect unless you just want to mute it. 0% works, the difference between 1% and 100% volume is basically what you would expect to see between like 90% and 100%.

e.g.

Can’t begin to explain what the solution might be, but I think is a problem on your end. I’m not having that issue at all, on any of the devices I use to log on here.

idk, I thought maybe it’s my browser (firefox latest on Mac) but when I go to the actual tweet, their embedded video control thing is much more responsive, when I move the volume slider there it actually lowers the volume a significant amount. it’s just when it’s embedded here (and on SPE).

my work laptop is now blocking digital ocean. Is that always how unstuck has been hosted?

I don’t think anyone works on technical problems here anymore.

We’ve been on Digital Ocean for years, and I don’t think a single thing about the hosting has changed in the past several months.

Thanks. Must be a new policy on my end.

I know this is old but are we on a shared ip? Seems likely and if someone else with a site on that server got banned we would be caught in the mix at econphile’s work.

A DO VPS should not be

I’m not sure how I’d know this, but I’m willing to dig around if someone points me in the right direction.

in short, yes.

DO ip space is well known and hosts spammers. these addresses are called CIDRs. DO address space has been put on blacklists. this site has had issues in the past with completely correctly configured email getting black-holed (traffic never reaches its destination) by various email providers due to this.

it’s entirely possible and likely a workplace may blacklist DO IP’s and has been the source of workplace access issues in the past.

my advice, use a vpn, or put a proxy in front of the DO server (or rehost on something like aws).

I think this may be a known issue, if you have a bad poster on your ignore list, and that poster is the last person to post in a thread you’re watching, it keeps appearing in your unread threads list even after you read it until you unhide that last post.

I think that’s known. That was the case with Trump Bot. It also seems to make some threads show up as read even if you haven’t clicked them in a while