mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 09:34:57 +02:00
site change and file recording, better share support
This commit is contained in:
parent
9275b92d9f
commit
da9d1e4eb3
15 changed files with 125 additions and 65 deletions
|
@ -56,7 +56,7 @@ class Site < Sequel::Model
|
|||
MAX_COMMENT_SIZE = 420 # Used to be the limit for Facebook.. no comment (PUN NOT INTENDED).
|
||||
|
||||
SCREENSHOT_RESOLUTIONS = ['235x141', '105x63', '270x162', '37x37', '146x88', '302x182', '90x63', '82x62', '348x205']
|
||||
THUMBNAIL_RESOLUTIONS = ['105x63']
|
||||
THUMBNAIL_RESOLUTIONS = ['105x63', '90x63']
|
||||
|
||||
many_to_one :server
|
||||
|
||||
|
@ -224,6 +224,8 @@ class Site < Sequel::Model
|
|||
ThumbnailWorker.perform_async values[:username], filename
|
||||
end
|
||||
|
||||
SiteChange.record self, filename
|
||||
|
||||
self.site_changed = true
|
||||
self.changed_count += 1
|
||||
save(validate: false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue