1
1
submitted 2 weeks ago* (last edited 2 weeks ago) by Shadow@lemmy.ca to c/main@lemmy.ca

Sorry everyone I know how much you love the attention she gives you, but I've implemented some quick and dirty filtering for private messaging.

We now have the ability to automatically mark PM's as deleted or read, depending on content inside of them. If we accidentally filter something you legitimately wanted (ie, not Nicole) please let me know.

If any other instances would like to implement this, here's the code. Note that you'll need to set your hostname at the top here for some reason I haven't exactly identified.

SET lemmy.protocol_and_hostname = 'https://lemmy.ca/';

CREATE TABLE private_message_filters (
    id SERIAL PRIMARY KEY,
    phrase TEXT NOT NULL,
    behavior VARCHAR(10) NOT NULL CHECK (behavior IN ('delete', 'mark_read'))
);

CREATE OR REPLACE FUNCTION filter_private_messages()
RETURNS trigger AS $$
DECLARE
    banned_phrase_record private_message_filters%ROWTYPE;
BEGIN
    FOR banned_phrase_record IN 
        SELECT * FROM private_message_filters
    LOOP
        IF LOWER(TRIM(NEW.content)) ILIKE '%' || LOWER(TRIM(banned_phrase_record.phrase)) || '%' THEN
            IF banned_phrase_record.behavior = 'delete' THEN
                NEW.deleted := true;
                RETURN NEW;
            ELSIF banned_phrase_record.behavior = 'mark_read' THEN
                NEW.read := true;
                RETURN NEW;
            END IF;
        END IF;
    END LOOP;
    RETURN NEW;
END;
$$ LANGUAGE plpgsql;

CREATE TRIGGER trg_filter_private_messages
AFTER INSERT ON private_message
FOR EACH ROW
EXECUTE FUNCTION filter_private_messages();

To add filter words:

insert into private_message_filters (behavior, phrase) values ('delete', 'spamtestdelete');
insert into private_message_filters (behavior, phrase) values ('mark_read', 'spamtestread');

If you want to quickly disable / enable filtering while testing:

ALTER TABLE private_message DISABLE TRIGGER trg_filter_private_messages;
ALTER TABLE private_message ENABLE TRIGGER trg_filter_private_messages;

I'll leave it up to you to figure out what phrases to filter on. MAKE SURE YOU TEST. If there's an error, private messaging could break completely. You should not get an error message from the UI while sending a message with a banned word.

2
1
submitted 2 weeks ago by Shadow@lemmy.ca to c/main@lemmy.ca

Sorry for the downtime! Unfortunately our secondary firewall took over for some reason, and haproxy failed to properly come up.

I'll be scheduling a maintenance window in the next few days to do some further digging, so I can make sure this is fully resolved.

3
1
submitted 3 weeks ago by Ashwag@lemmy.ca to c/main@lemmy.ca

I was wondering if there was really a good reason for CloudFlare to be used? I understand Lemmy.ca has dedicated hardware in a datacenter. Seems odd to pipe all our data through a US company as we are in a trade war.

4
1
submitted 3 weeks ago by Blaze@lemmy.dbzer0.com to c/main@lemmy.ca
5
1
Pixedlfed (lemmy.ca)
submitted 4 weeks ago by hddsx@lemmy.ca to c/main@lemmy.ca

Does Lemmy.ca/fedecan.ca also own pixedlfed.ca?

If so, can someone answer if it's possible to have a private account that does NOT federate your data?

6
1
submitted 4 weeks ago* (last edited 4 weeks ago) by CrashLoopBackOff@lemmy.ca to c/main@lemmy.ca

The more people use Fedecan services, the more Fedecan will attract bots.

Which means Fedecan will have to do something for users to prove that they are human. When I joined, you guys had a registration prompt with manual review, but I imagine the prompts you gave could be automatically bypassed by an LLM fairly easily.

The naive solution is to do something like collecting government IDs like Facebook tried at one point. But that'll just drive people away who don't trust Fedecan with that info.

What would be your thoughts (admin thoughts, and community thoughts) to implement some 'proof of unique personhood' process with something like Canada Post Identity+? Basically, Canada Post verifies that users are human and is responsible for taking care of PII, and Fedecan just trusts Canada Post to not let the same user register multiple times. If done well, I think 'Canada Post proves that every user account on this site is a unique human' could be a real selling point for lemmy.ca and pixelfed.ca

Full disclosure, I heard about it in a Reddit thread of people complaining about bugs in it while they try to vote in the Liberal party election. But I bet this is just early adopter bugs, and the Liberal party clearly trusts it with their leadership elections.

Regardless, I think proof of unique personhood is a problem Fedecan will have to solve, and a solution through something as Canadian as the post office just seems more elegant than having the Fedecan admins reinvent the wheel.

I realize you guys (admins) are probably quite busy with IRL work and the Pixelfed launch, so if there was interest in this but no admin capacity to investigate further, I could volunteer to reach out to Canada Post and see what they could offer for non-profit use, including what it would cost Fedecan.

Thoughts?

EDIT: for people concerned about "but then CSIS knows which account is mine", an anonymous credential system like U-Prove could be used to prove "1 lemmy.ca user = 1 unique real person", while cryptographically guaranteeing it is impossible to link any particular lemmy.ca user to any particular human identity.

7
1
submitted 1 month ago by otter@lemmy.ca to c/main@lemmy.ca

cross-posted from: https://lemmy.ca/post/39752087, from the !pixelfed.ca@lemmy.ca community

TOTAL USERS is the number of users that registered on pixelfed.ca

TOTAL POSTS is the number of posts from all instances that are now accessible on pixelfed.ca

8
1
submitted 1 month ago* (last edited 1 month ago) by roadrunner_ex@lemmy.ca to c/main@lemmy.ca

I was just taking a peek at the various frontends supported by lemmy.ca, and I was wondering if the admins here have any insight into their respective use?

I'm going to bet the default (lemmy-ui) is most popular, but do any of the other frontends get far-and-away more use than the other alternatives? Has there been any trends up or down? Just thought I'd ask.

As an aside, if any of the frontend developers happen across this post, well done to all of you! I can immediately see the appeal of each, so each niche is being filled darn well!

Edit: to be clear, I'm talking about the frontends listed on the lemmy.ca main sidebar.

9
1
submitted 1 month ago* (last edited 1 month ago) by otter@lemmy.ca to c/main@lemmy.ca

After moving in to our new server last month, our next large project is to set up some new Fediverse platforms. One of the most requested of those was Pixelfed, which is an image sharing platform.

You should be able to sign up here: pixelfed.ca

As with any new instance, some issues are to be expected and while we've done some testing already, please bear with us as things get going. For any support related issues with pixelfed.ca, please post in the new !pixelfed@lemmy.ca community

10
1
submitted 1 month ago by ehpolitical@lemmy.ca to c/main@lemmy.ca

I've been posting the link to lemmy.ca wherever I can, like over at YouTube for instance... and I wanted to make sure that's ok before finding out it's not for some reason.

So, is that ok?

11
1
submitted 1 month ago by jayaura@lemmy.ca to c/main@lemmy.ca

Do you provide donation receipts so that the donor may use it for tax credits in Canada?

Couldnt find any mention of tax receipts on fedecan.ca

12
1
submitted 1 month ago by Shadow@lemmy.ca to c/main@lemmy.ca

Sorry about the brief downtime there!

Wasn't related to the new users or high load, but was a combination of two problems:

  1. Our fw02 took over for some reason TBD
  2. Opnsense isn't keeping haproxy configs in sync and fw02 had a broken config

Still digging into the root cause, but shouldn't be any more issues =)

13
1
submitted 1 month ago* (last edited 1 month ago) by otter@lemmy.ca to c/main@lemmy.ca

We have gotten a lot of new signups over the past few days, and we're all very excited to have you joining us! You'll find that people are more than happy to help you get started and learn how to use the site.

If you feel up for it, you can introduce yourself or ask questions below!

We have put together some resources to help new users get started:

You can also read:

These guides were published very recently, and we will be updating them over time. If you find that something is confusing or missing, please let us know and we can improve them further.

For an organized list of Canadian communities (provinces/territories, Cities / Local , Sports, Schools, BuyCanadian, CanadaPolitics etc.), see this post on !Canada@lemmy.ca. You can also ask about communities in places like !CommunityPromo@lemmy.ca.

We also encourage you to check out !NewToLemmy@lemmy.ca, so that others can help you / learn from your questions.

Welcome to Lemmy :)

14
1
submitted 1 month ago by Blaze@lemmy.dbzer0.com to c/main@lemmy.ca
15
1
submitted 1 month ago* (last edited 1 month ago) by Darkassassin07@lemmy.ca to c/main@lemmy.ca

Hexbear lost their domain (It's currently up for auction), and have moved to chapo.chat

Pretty sure we're defederated from hexbear, thought id pass on the new name to be re-defederated if it hasn't been already.

16
1
submitted 1 month ago by Shadow@lemmy.ca to c/main@lemmy.ca

Just a heads up that we're now running on lemmy 0.19.9.

Change log here - https://lemmy.ca/post/38913840

17
1
submitted 1 month ago by Shadow@lemmy.ca to c/main@lemmy.ca

Sorry about the ~20 minutes of downtime there!

I was working on migrating the lemmy.ca domain out of a personal cloudflare account, into a shared one for Fedecan. Missed one little setting that took me far too long to track down!

18
1
submitted 1 month ago by masterspace@lemmy.ca to c/main@lemmy.ca

I can't be the only reddit migrant who often instinctually goes to a given community by typing /r/community, only to be 404d. If the /r/ path isn't being used for anything else, is it possible to have it dynamically redirect to /c/ instead?

19
1
submitted 1 month ago by brianpeiris@lemmy.ca to c/main@lemmy.ca

I was going to post this in /c/Canada, but figured I'd post it here first since we'd need someone to officially represent Lemmy.ca/Fedecan to make it happen and organize a sort of group-pledge from the lemmy.ca community.

They have tiers for a $500 Gold Sponsor, $1000 Diamond Sponsor, and $2500 Platinum Sponsor to get a logo on their website sponsor page. I figured aiming for $500 is reasonable.

20
1
submitted 1 month ago by Shadow@lemmy.ca to c/main@lemmy.ca

Unfortunately the pictrs database migration yesterday seems to have skipped migrating a ton of data.

Since cloudflare is caching our images, almost nobody noticed. We've now been running on the new instance for over a day, collecting new images into a new incomplete db. Fun.

I now have two copies of pictrs running, one with the postgres db and one with the legacy sled-db. Requests that fail against our updated one, will be retried against the legacy one. This should result in all images working properly again for now, while I figure out a better long term solution.

Please let me know if you still see any issues with images loading!

21
1
submitted 1 month ago* (last edited 1 month ago) by Shadow@lemmy.ca to c/main@lemmy.ca

I'm curious if anyone here actually finds value in the reddit posts brought over by lemmit.online, since I'd like to defederate from it otherwise.

It feels actively harmful to lemmy, since so many of the posts it brings over are questions that the original poster will never see. It encourages a conversation that will never happen, so if someone does reply they're going to feel disengaged.

The bot rarely gets any upvotes or engagement, and I suspect a majority of people (like myself) have just blocked it. TBH I forgot it existed until Tesseract showed me its posts again.

22
1
submitted 1 month ago* (last edited 1 month ago) by Shadow@lemmy.ca to c/main@lemmy.ca

Hi everyone!

Tesseract is now available as an alternative front end at https://tess.lemmy.ca/

23
1
submitted 2 months ago* (last edited 2 months ago) by Shadow@lemmy.ca to c/main@lemmy.ca

Hello everyone!

I'll be taking the site down for two maintenance windows this week to complete our server migration.

  • Weds Jan 29th - 09:00 - 11:00 PT (12:00 - 14:00 ET)
  • Thurs Jan 30th - 09:00 - 11:00 PT (12:00 - 14:00 ET)

During the first window I'll be migrating us from OVH to our new dedicated hardware. After this migration there will likely be some temporarily broken images, as it takes approximately 8 hours to resync our object storage from OVH.

This is a major change and despite my testing, may have some unintended side effects. If you run into any problems that aren't just a broken image, please let us know.

The second maintenance window is to migrate our pict-rs database from it's local sled-db into our primary postgres DB. This is a much smaller change but since pict-rs checks every image as it goes through them, it takes about 1.5 hours.

As usual, you can check https://status.lemmy.ca/ for updates.

24
1
submitted 2 months ago by cyborganism@lemmy.ca to c/main@lemmy.ca

Translation: To stay on X or not? Some elected officials think of leaving Elon Musk's platform.

What the article is saying is basically that a lot of the provincial MPs in Québec are thinking of leaving for something else. One of which, the health minister Christian Dubé, has already created an account on BlueSky.

We need to promote fediverse alternatives to our elected officials right now since everyone is worried about the control of information on Meta/X & Co.

25
1
submitted 2 months ago by leftleaving@lemmy.ca to c/main@lemmy.ca

Hello all! I am new to Lemmy.ca and really new to this whole concept. I was poking around the community list and thought of a couple that I would have liked to see (Canada related). Is there a procedure specifically for creating new communities here, or do I just go ahead if I'm sure it doesn't exist? I don't want to step on any toes.

view more: next ›

Lemmy.ca's Main Community

3148 readers
21 users here now


Welcome to the lemmy.ca/c/main community!

All new users on lemmy.ca are automatically subscribed to this community, so this is the place to read announcements, make suggestions, and chat about the goings-on of lemmy.ca.

For support requests specific to lemmy.ca, you can use !lemmy_ca_support@lemmy.ca.


founded 4 years ago
MODERATORS