mirror of
https://github.com/neocities/neocities.git
synced 2025-06-29 07:33:26 +02:00
optimize performance for site profile render
This commit is contained in:
parent
13988ad74a
commit
e1eb377a92
8 changed files with 38 additions and 171 deletions
|
@ -18,7 +18,7 @@ class Event < Sequel::Model
|
|||
end
|
||||
|
||||
def liking_site_names
|
||||
likes.collect {|like| like.actioning_site.username }
|
||||
likes_dataset.select(:actioning_site_id).all.collect {|like| like.actioning_site_dataset.select(:username).first.username }
|
||||
end
|
||||
|
||||
def add_site_comment(site, message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue