Skip to content

Commit

Permalink
phase 2 partial ------ 3 (#73)
Browse files Browse the repository at this point in the history
* added description to the video url field in project creation form issue #50 (#61)

* new deployment changes (#62)

* domain setup step 1 test 5

* domain setup step 2(backend) test 1

* domain setup step2(backend) test2

* removed .ssl-data from .dockerignore

* added custom nginx container to handle reverse proxying and https requests

* made important changes to deploy_frontend.sh, added google tracking code to index.html, enabled crawling

* increased pagination limit from 6 to 20 (#63)

* phase2 patial ----- 2 (#65)

switched handling of ssl back to valian/docker-nginx-auto-ssl

* fixed bug that occurs when user submit google drive video link (#72)

* added functionality to format youtube video url to embedable format

* made video url optional

* switched image upload location from cloudinary to digital ocean spaces

* added functionality to automatically delete image from digitalocean space once image is deleted from db

* added image count indicator and made video optional. also added project create button to navbar

* removed .ssl from git

* untracked .ssl-data

* added support for various forms of youtube video url, vimeo and google drive

* fixed issues #35, #33, #32, #30, #29

* fixed issue #46

* phase2 patial ----- 2 (#66)

* added description to the video url field in project creation form issue #50 (#61)

* new deployment changes (#62)

* increased pagination limit from 6 to 20 (#63)

* phase2 patial ----- 2 (#65)

switched handling of ssl back to valian/docker-nginx-auto-ssl

* fixed issue #68
  • Loading branch information
NdibeRaymond authored Jan 10, 2021
1 parent e0a406e commit 70d7432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zubhub_backend/zubhub/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def save(self, *args, **kwargs):
self.video = "player.vimeo.com/video".join(
self.video.split("vimeo.com"))

elif self.video.find("drive.google.com") != -1 and self.video.find("view") != -1:
self.video = self.video.split("view")[0] + "preview"
elif self.video.find("drive.google.com") != -1 and self.video.find("/view") != -1:
self.video = self.video.split("/view")[0] + "/preview"

if self.id:
self.likes_count = self.likes.count()
Expand Down

0 comments on commit 70d7432

Please sign in to comment.