Compare commits

..

3 Commits

Author SHA1 Message Date
邱博亞 414458b431 Add notify remote. 2024-09-16 19:15:10 +08:00
邱博亞 dfe1e2e2ff Fix feed. 2024-09-16 19:14:53 +08:00
邱博亞 61b763a3b4 Fix feed. 2024-09-16 11:30:37 +08:00
1 changed files with 1 additions and 2 deletions

View File

@ -451,14 +451,13 @@ class EventNews
a["event_date"] = self.event_date
a["event_end_date"] = self.event_end_date
a["postdate"] = self.postdate
a["img_description_translations"] = self.image_description_translations
a["image_description_translations"] = self.image_description_translations
a["image"] = {}
a["display_img"] = self.display_img
if self.image.present?
a["image"]["original"] = base_url + self.image.url
a["image"]["thumb"] = base_url + self.image.thumb.url
a["image"]["mobile"] = base_url + self.image.mobile.url
a["img_src"] = a["image"]["thumb"] || "/assets/event_news-default.jpg"
image = MiniMagick::Image.open(self.image.path) rescue nil
if image
a["image"]["width"] = image[:width]