code
oh ok, in app/models/status.rb:
'''
before_create :set_locality
'''
and then in there
'''
def set_locality
if account.domain.nil? && !attribute_changed?(:local_only)
self.local_only = marked_local_only?
end
end
'''
and a couple paragraphs above that:
'''
def marked_local_only?
# match both with and without U+FE0F (the emoji variation selector)
/#{local_only_emoji}\ufe0f?\z/.match?(content)
end
def local_only_emoji
'👁'
end
'''
@starfall yeah it does feel like code i would put in a service layer
@starfall feel silly for not looking in the fucking model for a status
@starfall ty
@monorail oh my god it’s in the model definition for a status. lol
@monorail that’s what i understood, but i cannot yet find where it actually does this in the codebase
re: selfies, eye contact, :flirts_ok:
@compufox no, u,,
re: vegan food cooking update 3: tasting
@packbat look i just, really love bread,
re: vegan food cooking update 3: tasting
@packbat thankkkklkkkkkkk -nomnomnom-
re: realization re: vegan food cooking update 3: tasting
@packbat just note that avacado oil is relatively expensive tho
re: no image description
@gayocats cat,
@Lady big example on my mind is THPS1+2, whose physical copy got has a day one update that greatly improves performance
and also is like, 10 gigs i think
@Lady yeah that’s the thing…
@xenon hell yeah
re: vegan food cooking update 3: tasting
@packbat yes please
re: selfies, eye contact, :flirts_ok:
re: no image description
@gayocats cat
@chosafine i know for LCD displays you get effective input lag from ghosting of the previous frame in large parts of the screen before they all get updated; idk if more frames will reduce this ghosting or make it worse (because you leave a ghost from half a frame prior instead of a full one)
it’s pronounced “ashling”. canonically a black housecat or any of the grass cat pokémon, but currently experiencing daily TFs. Commewnist. it/she and more. i automatically change my pfp on the furst post of the day. (i suppurrt PluralDawn (https://exa.y2k.diy/garden/pluraldawn/) fur when i want to spontaneously change form fur a post or two)
GlitchCat syscatmin and meowstodev; @ me about techincal problems with the instance, or fur feature requests. i got a job due to some extent to my work on this instance
i am the kind of furry who is a weirdo horny freak (affectionate) about it but i don’t talk about that much on this account
available via email with the same username and domain. DM/email for other purrotocols
workplace policy is to clarify that all of my opinions expressed here are my own, and not those of my employer