mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
only register html files as site changes
This commit is contained in:
parent
522fe16f67
commit
1dca65a4c2
1 changed files with 1 additions and 1 deletions
|
@ -1506,7 +1506,7 @@ class Site < Sequel::Model
|
|||
FileUtils.cp uploaded.path, path
|
||||
File.chmod 0640, path
|
||||
|
||||
SiteChange.record self, relative_path unless opts[:new_install]
|
||||
SiteChange.record self, relative_path if !opts[:new_install] && File.extname(relative_path).match(HTML_REGEX)
|
||||
|
||||
site_file ||= SiteFile.new site_id: self.id, path: relative_path
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue