mirror of
https://github.com/neocities/neocities.git
synced 2025-08-01 23:31:52 +02:00
Merge branch 'neocities:master' into master
This commit is contained in:
commit
f110dc6fb4
8 changed files with 32 additions and 5 deletions
|
@ -1538,14 +1538,16 @@ class Site < Sequel::Model
|
|||
xml.image {
|
||||
xml.url sharing_screenshot_url
|
||||
xml.title title
|
||||
xml.link uri
|
||||
}
|
||||
|
||||
site_change_events.each do |event|
|
||||
event_link = "https://neocities.org/site/#{username}?event_id=#{event.id.to_s}"
|
||||
xml.item {
|
||||
xml.title "#{title} has been updated."
|
||||
xml.link "https://neocities.org/site/#{username}?event_id=#{event.id.to_s}"
|
||||
xml.link event_link
|
||||
xml.pubDate event.created_at.rfc822
|
||||
xml.guid event.id.to_s
|
||||
xml.guid event_link
|
||||
}
|
||||
end
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ require 'sanitize'
|
|||
class SiteFile < Sequel::Model
|
||||
CLASSIFIER_LIMIT = 1_000_000
|
||||
CLASSIFIER_WORD_LIMIT = 25
|
||||
FILE_PATH_CHARACTER_LIMIT = 600
|
||||
FILE_PATH_CHARACTER_LIMIT = 1200
|
||||
FILE_NAME_CHARACTER_LIMIT = 100
|
||||
unrestrict_primary_key
|
||||
plugin :update_primary_key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue