mirror of
https://github.com/neocities/neocities.git
synced 2025-07-22 02:26:07 +02:00
editing for profile comments
This commit is contained in:
parent
f681e6c704
commit
6277a94a5b
12 changed files with 80 additions and 13 deletions
|
@ -8,6 +8,11 @@ class Event < Sequel::Model
|
|||
one_to_many :likes
|
||||
one_to_many :comments
|
||||
|
||||
def created_by?(site)
|
||||
return true if profile_comment && profile_comment.actioning_site_id == site.id
|
||||
false
|
||||
end
|
||||
|
||||
def liking_site_names
|
||||
likes.collect {|like| like.actioning_site.username }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue