if that’s too much (likely) i could do it by file, perhaps starting with the status controllers, and models, services. etc
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
'''
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 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