mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 01:01:30 +02:00
bold for activity link, usernames for likes, fix likes
This commit is contained in:
parent
b2a2281ff7
commit
9cedbd086d
8 changed files with 932 additions and 22 deletions
|
@ -10,6 +10,12 @@ class Comment < Sequel::Model
|
|||
end
|
||||
end
|
||||
|
||||
def liking_site_usernames
|
||||
comment_likes_dataset.select(:id, :actioning_site_id).all.collect do |comment_like|
|
||||
comment_like.actioning_site_dataset.select(:username).first.username
|
||||
end
|
||||
end
|
||||
|
||||
def site_likes?(site)
|
||||
comment_likes_dataset.filter(actioning_site_id: site.id).count > 0
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue