mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Merge branch 'master' of github.com:neocities/neocities
This commit is contained in:
commit
5aeb1b0c8b
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