mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
commit
788f99831d
1 changed files with 2 additions and 0 deletions
|
@ -341,6 +341,8 @@ class Site < Sequel::Model
|
|||
follow.delete
|
||||
false
|
||||
else
|
||||
return false if site.id == self.id # Do not follow yourself
|
||||
|
||||
DB.transaction do
|
||||
follow = add_following site_id: site.id
|
||||
Event.create site_id: site.id, actioning_site_id: self.id, follow_id: follow.id
|
||||
|
|
Loading…
Add table
Reference in a new issue