@compufox nom
re: code
before_create is a callback on ActiveRecords---https://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html
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
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
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 have very strong opinions about the sonic furanchise. pokémon has me in a chokehold when it comes to merchandise
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
“all this shit is still incomprehensible but im glad u accomplished something” ―@wallhackio