news feed: confirm before removal of event

This commit is contained in:
Kyle Drake 2024-04-29 17:28:09 -05:00
parent 5adef9adb9
commit b5ca5f0bc9
2 changed files with 25 additions and 1 deletions

View file

@ -107,4 +107,12 @@ class Event < Sequel::Model
true
end
end
def name
return 'follow' if follow_id
return 'tip' if tip_id
return 'tag' if tag_id
return 'site change' if site_change_id
return 'comment' if profile_comment_id
end
end